Class BoatTrait

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

public class BoatTrait extends Trait
  • Constructor Details

    • BoatTrait

      public BoatTrait()
  • Method Details

    • getType

      public Boat.Type getType()
    • 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(Boat.Type type)