Class FoxTrait

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

public class FoxTrait extends Trait
  • Constructor Details

    • FoxTrait

      public FoxTrait()
  • Method Details

    • getType

      public Fox.Type getType()
    • isCrouching

      public boolean isCrouching()
    • isSitting

      public boolean isSitting()
    • isSleeping

      public boolean isSleeping()
    • run

      public void run()
      Description copied from class: Trait
      Called every tick if overridden.
      Specified by:
      run in interface Runnable
      Overrides:
      run in class Trait
    • setCrouching

      public void setCrouching(boolean crouching)
    • setSitting

      public void setSitting(boolean sitting)
    • setSleeping

      public void setSleeping(boolean sleeping)
    • setType

      public void setType(Fox.Type type)
    • fox

      public static void fox(CommandContext args, CommandSender sender, NPC npc, Boolean sleeping, Boolean sitting, Boolean crouching) throws CommandException
      Throws:
      CommandException