Class Saddle

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

public class Saddle extends Trait implements Toggleable
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()
      Specified by:
      toggle in interface Toggleable
    • toString

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

      public boolean useSaddle()