Class PacketNPC

java.lang.Object
net.citizensnpcs.api.trait.Trait
net.citizensnpcs.trait.PacketNPC
All Implemented Interfaces:
Runnable, Listener

public class PacketNPC extends Trait
  • Constructor Details

    • PacketNPC

      public PacketNPC()
  • Method Details

    • getPacketTracker

      public EntityPacketTracker getPacketTracker()
    • onRemove

      public void onRemove(RemoveReason reason)
      Description copied from class: Trait
      Called when a trait is removed from the attached NPC.
      Overrides:
      onRemove in class Trait
    • onSpawn

      public void onSpawn()
      Description copied from class: Trait
      Called when an NPC is spawned. NPC.getEntity() will return null until this is called. This is also called onAttach when the NPC is already spawned.
      Overrides:
      onSpawn in class Trait
    • run

      public void run()
      Description copied from class: Trait
      Called every tick if overridden.
      Specified by:
      run in interface Runnable
      Overrides:
      run in class Trait
    • wrap

      public EntityController wrap(EntityController controller)