Package net.citizensnpcs.api.trait

Examples of net.citizensnpcs.api.trait.Trait


        if (loc != null)
            created.getCitizen().spawn(loc);
        if (traits != null) {
            for (String trait_name : traits) {
                Trait trait = CitizensAPI.getTraitFactory().getTrait(trait_name);
                if (trait != null)
                    created.getCitizen().addTrait(trait);
                else
                    dB.echoError(scriptEntry.getResidingQueue(), "Could not add trait to NPC: " + trait_name);
            }
View Full Code Here

TOP

Related Classes of net.citizensnpcs.api.trait.Trait

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.