接口 Wolf

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

public interface Wolf extends Animals, 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, and will actively look for targets to attack.

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

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

      原文: Get the collar color of this wolf

      返回:
      项圈的颜色
    • setCollarColor

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

      原文: Set the collar color of this wolf

      参数:
      color - 应用的颜色