Class OcelotModifiers

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

public class OcelotModifiers extends Trait
Persists Ocelot metadata.
See Also:
  • Constructor Details

    • OcelotModifiers

      public OcelotModifiers()
  • 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
    • setSitting

      public void setSitting(boolean sit)
    • setType

      public void setType(Ocelot.Type type)
    • supportsOcelotType

      public boolean supportsOcelotType()