接口 Fox

所有超级接口:
Ageable, Animals, Attributable, Breedable, 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?

  • 方法详细资料

    • getFoxType

      @NotNull @NotNull Fox.Type getFoxType()
      获取此狐狸品种.

      原文: Gets the current type of this fox.

      返回:
      狐狸品种.
    • setFoxType

      void setFoxType(@NotNull @NotNull Fox.Type type)
      设置狐狸的品种.

      原文: Sets the current type of this fox.

      参数:
      type - 要设置的新品种.
    • isCrouching

      boolean isCrouching()
      判断是否蜷缩.

      原文: Checks if this animal is crouching

      返回:
      蜷缩中返回true.
    • setCrouching

      void setCrouching(boolean crouching)
      设置是否蜷缩.

      原文: Sets if this animal is crouching.

      参数:
      crouching - 设置为true则蜷缩.
    • setSleeping

      void setSleeping(boolean sleeping)
      设置是否正在睡觉.

      原文: Sets if this animal is sleeping.

      参数:
      sleeping - 设置为true则进入睡眠状态
    • getFirstTrustedPlayer

      @Nullable @Nullable AnimalTamer getFirstTrustedPlayer()
      Gets the first trusted player.
      返回:
      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.

      参数:
      player - the AnimalTamer to be trusted
    • getSecondTrustedPlayer

      @Nullable @Nullable AnimalTamer getSecondTrustedPlayer()
      Gets the second trusted player.
      返回:
      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.

      参数:
      player - the AnimalTamer to be trusted
    • isFaceplanted

      boolean isFaceplanted()
      Gets whether the fox is faceplanting the ground
      返回:
      Whether the fox is faceplanting the ground