Interface Fox

All Superinterfaces:
Ageable, Animals, Attributable, net.kyori.adventure.audience.Audience, Breedable, CommandSender, Creature, Damageable, Entity, net.kyori.adventure.text.event.HoverEventSource<net.kyori.adventure.text.event.HoverEvent.ShowEntity>, LivingEntity, Lootable, Metadatable, Mob, Nameable, Permissible, PersistentDataHolder, net.kyori.adventure.pointer.Pointered, ProjectileSource, ServerOperator, Sittable

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
    • 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
    • isFaceplanted

      boolean isFaceplanted()
      Gets if the fox face planted.
      Returns:
      fox face planted