Package net.aufdemrand.denizen.objects.properties.entity

Examples of net.aufdemrand.denizen.objects.properties.entity.EntityAge


            if (entity.isSpawned()) {

                // Check if entity specified can be described by 'EntityAge'
                if (EntityAge.describes(entity)) {

                    EntityAge property = EntityAge.getFrom(entity);

                    // Adjust 'ageType'
                    if (ageType != null) {
                        if (ageType.equals(AgeType.BABY))
                            property.setBaby(true);
                        else property.setBaby(false);
                    }
                    else
                        property.setAge(age);

                    // Adjust 'locked'
                    property.setLock(lock);
                }

                else
                    dB.echoError(scriptEntry.getResidingQueue(), entity.identify() + " is not ageable!");
View Full Code Here

TOP

Related Classes of net.aufdemrand.denizen.objects.properties.entity.EntityAge

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.