Class RabbitType

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

public class RabbitType extends Trait
Persists Rabbit metadata.
See Also:
  • Constructor Details

    • RabbitType

      public RabbitType()
  • Method Details

    • getRabbitType

      public Rabbit.Type getRabbitType()
    • 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
    • setType

      public void setType(Rabbit.Type type)