Class Saddle

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

public class Saddle extends Trait
Persists saddle metadata.
See Also:
  • Constructor Details

    • Saddle

      public Saddle()
  • Method Details

    • 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
    • toggle

      public boolean toggle()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • useSaddle

      public boolean useSaddle()