接口 Wolf

所有超级接口:
Ageable, Animals, Attributable, Breedable, CommandSender, Creature, Damageable, Entity, LivingEntity, Lootable, Metadatable, Mob, Nameable, Permissible, PersistentDataHolder, ProjectileSource, ServerOperator, Sittable, Tameable

public interface Wolf extends Tameable, Sittable
代表狼.
  • 方法详细资料

    • isAngry

      boolean isAngry()
      检测狼是否愤怒.

      原文: Checks if this wolf is angry

      返回:
      如果愤怒则为true
    • setAngry

      void setAngry(boolean angry)
      设置这只狼的愤怒状态.

      愤怒的狼不能喂食或驯服.

      原文: Sets the anger of this wolf.

      An angry wolf can not be fed or tamed.

      参数:
      angry - 如果愤怒则为true
      另请参阅:
    • getCollarColor

      @NotNull @NotNull DyeColor getCollarColor()
      获取这只狼的项圈颜色.

      原文: Get the collar color of this wolf

      返回:
      项圈的颜色
    • setCollarColor

      void setCollarColor(@NotNull @NotNull DyeColor color)
      设置这只狼的项圈颜色.

      原文: Set the collar color of this wolf

      参数:
      color - 颜色
    • isWet

      boolean isWet()
      Gets whether the wolf is wet
      返回:
      Whether the wolf is wet
    • getTailAngle

      float getTailAngle()
      Gets the wolf's tail angle in radians
      返回:
      The angle of the wolf's tail in radians
    • isInterested

      boolean isInterested()
      Gets if the wolf is interested
      返回:
      Whether the wolf is interested
    • setInterested

      void setInterested(boolean interested)
      Set wolf to be interested
      参数:
      interested - Whether the wolf is interested