Package net.citizensnpcs.trait
Class PacketNPC
java.lang.Object
net.citizensnpcs.api.trait.Trait
net.citizensnpcs.trait.PacketNPC
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onRemove
(RemoveReason reason) Called when a trait is removed from the attachedNPC
.void
onSpawn()
Called when anNPC
is spawned.void
run()
Called every tick if overridden.wrap
(EntityController controller)
-
Constructor Details
-
PacketNPC
public PacketNPC()
-
-
Method Details
-
getPacketTracker
-
onRemove
Description copied from class:Trait
Called when a trait is removed from the attachedNPC
. -
onSpawn
public void onSpawn()Description copied from class:Trait
Called when anNPC
is spawned.NPC.getEntity()
will return null until this is called. This is also called onAttach when the NPC is already spawned. -
run
public void run()Description copied from class:Trait
Called every tick if overridden. -
wrap
-