Interface Fox

All Superinterfaces:
Ageable, Animals, Attributable, Audience, Breedable, CommandSender, Creature, Damageable, Entity, Frictional, HoverEventSource<HoverEvent.ShowEntity>, Leashable, LivingEntity, Lootable, Metadatable, Mob, Nameable, Permissible, PersistentDataHolder, PersistentDataViewHolder, Pointered, ProjectileSource, ServerOperator, Sittable, Sound.Emitter

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

    • getFoxType

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

      void setFoxType(@NotNull @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 @Nullable AnimalTamer getFirstTrustedPlayer()
      Gets the first trusted player.
      Returns:
      the owning AnimalTamer, or null if not owned
    • setFirstTrustedPlayer

      void setFirstTrustedPlayer(@Nullable @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 @Nullable AnimalTamer getSecondTrustedPlayer()
      Gets the second trusted player.
      Returns:
      the owning AnimalTamer, or null if not owned
    • setSecondTrustedPlayer

      void setSecondTrustedPlayer(@Nullable @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
    • isFaceplanted

      boolean isFaceplanted()
      Gets whether the fox is faceplanting the ground
      Returns:
      Whether the fox is faceplanting the ground
    • setInterested

      void setInterested(boolean interested)
      Sets if the fox is interested.
      Parameters:
      interested - is interested
    • isInterested

      boolean isInterested()
      Gets if the fox is interested.
      Returns:
      fox is interested
    • setLeaping

      void setLeaping(boolean leaping)
      Sets if the fox is leaping.
      Parameters:
      leaping - is leaping
    • isLeaping

      boolean isLeaping()
      Gets if the fox is leaping.
      Returns:
      fox is leaping
    • setDefending

      void setDefending(boolean defending)
      Sets if the fox is defending.
      Parameters:
      defending - is defending
    • isDefending

      boolean isDefending()
      Gets if the fox is defending.
      Returns:
      fox is defending
    • setFaceplanted

      void setFaceplanted(boolean faceplanted)
      Sets if the fox face planted.
      Parameters:
      faceplanted - face planted