Interface Fox

All Superinterfaces:
Ageable, Animals, Attributable, CommandSender, Creature, Damageable, Entity, LivingEntity, Lootable, Metadatable, Mob, Nameable, Permissible, PersistentDataHolder, ProjectileSource, ServerOperator, Sittable

public interface Fox
extends Animals, Sittable
What does the fox say?
  • Method Details

    • getFoxType

      @NotNull Fox.Type getFoxType()
      Gets the current type of this fox.
      Returns:
      Type of the fox.
    • setFoxType

      void setFoxType​(@NotNull Fox.Type type)
      Sets the current type of this fox.
      Parameters:
      type - New type of this fox.
    • isCrouching

      boolean isCrouching()
      Checks if this animal is crouching
      Returns:
      true if crouching
    • setCrouching

      void setCrouching​(boolean crouching)
      Sets if this animal is crouching.
      Parameters:
      crouching - true if crouching
    • setSleeping

      void setSleeping​(boolean sleeping)
      Sets if this animal is sleeping.
      Parameters:
      sleeping - true if sleeping
    • getFirstTrustedPlayer

      @Nullable AnimalTamer getFirstTrustedPlayer()
      Gets the first trusted player.
      Returns:
      the owning AnimalTamer, or null if not owned
    • setFirstTrustedPlayer

      void setFirstTrustedPlayer​(@Nullable AnimalTamer player)
      Set the first trusted player.

      The first trusted player may only be removed after the second.

      Parameters:
      player - the AnimalTamer to be trusted
    • getSecondTrustedPlayer

      @Nullable AnimalTamer getSecondTrustedPlayer()
      Gets the second trusted player.
      Returns:
      the owning AnimalTamer, or null if not owned
    • setSecondTrustedPlayer

      void setSecondTrustedPlayer​(@Nullable AnimalTamer player)
      Set the second trusted player.

      The second trusted player may only be added after the first.

      Parameters:
      player - the AnimalTamer to be trusted