Examples of lookClose()


Examples of net.citizensnpcs.trait.LookClose.lookClose()

        // Get the instance of the trait that belongs to the target NPC
        LookClose trait = ((BukkitScriptEntryData)scriptEntry.entryData).getNPC().getCitizen().getTrait(LookClose.class);

        // Handle toggle
        if (scriptEntry.hasObject("toggle"))
            trait.lookClose(scriptEntry.getElement("toggle").asBoolean());

        // Handle realistic
        if (scriptEntry.hasObject("realistic"))
            trait.setRealisticLooking(true);
        else trait.setRealisticLooking(false);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.