Package net.citizensnpcs.trait.versioned
Class MannequinTrait
java.lang.Object
net.citizensnpcs.api.trait.Trait
net.citizensnpcs.trait.versioned.MannequinTrait
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidmannequin(CommandContext args, CommandSender sender, NPC npc, String description, Boolean immovable, Boolean hideDescription, MainHand mainHand, Object show, Object hide, SkinnableEntity.PlayerSkinModelType type, NamespacedKey body, NamespacedKey cape, NamespacedKey elytra) voidrun()Called every tick if overridden.voidsetDescription(String description) voidsetHideDescription(boolean hide) voidsetImmovable(boolean immovable) voidsetMainHand(MainHand hand)
-
Constructor Details
-
MannequinTrait
public MannequinTrait()
-
-
Method Details
-
run
public void run()Description copied from class:TraitCalled every tick if overridden. -
setDescription
-
setHideDescription
public void setHideDescription(boolean hide) -
setImmovable
public void setImmovable(boolean immovable) -
setMainHand
-
mannequin
public static void mannequin(CommandContext args, CommandSender sender, NPC npc, String description, Boolean immovable, Boolean hideDescription, MainHand mainHand, Object show, Object hide, SkinnableEntity.PlayerSkinModelType type, NamespacedKey body, NamespacedKey cape, NamespacedKey elytra) throws CommandException - Throws:
CommandException
-