Package net.citizensnpcs.trait.versioned
Class ItemDisplayTrait
java.lang.Object
net.citizensnpcs.api.trait.Trait
net.citizensnpcs.trait.versioned.ItemDisplayTrait
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voiditemdisplay(CommandContext args, CommandSender sender, NPC npc, ItemDisplay.ItemDisplayTransform transform) voidonSpawn()Called when anNPCis spawned.voidsetTransform(ItemDisplay.ItemDisplayTransform transform)
-
Constructor Details
-
ItemDisplayTrait
public ItemDisplayTrait()
-
-
Method Details
-
getTransform
-
onSpawn
public void onSpawn()Description copied from class:TraitCalled when anNPCis spawned.NPC.getEntity()will return null until this is called. This is also called onAttach when the NPC is already spawned. -
setTransform
-
itemdisplay
public static void itemdisplay(CommandContext args, CommandSender sender, NPC npc, ItemDisplay.ItemDisplayTransform transform) throws CommandException - Throws:
CommandException
-