接口 Goat

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

public interface Goat extends Animals
山羊.
  • 方法详细资料

    • hasLeftHorn

      boolean hasLeftHorn()
      获取此山羊是否有左角.

      原文:Gets if this goat has its left horn.

      返回:
      左角状态
    • setLeftHorn

      void setLeftHorn(boolean hasHorn)
      设置此山羊是否有左角.

      原文:Sets if this goat has its left horn.

      参数:
      hasHorn - 左角状态
    • hasRightHorn

      boolean hasRightHorn()
      获取此山羊是否有右角.

      原文:Gets if this goat has its right horn.

      返回:
      右角状态
    • setRightHorn

      void setRightHorn(boolean hasHorn)
      设置此山羊是否有右角.

      原文:Sets if this goat has its right horn.

      参数:
      hasHorn - 右角状态
    • isScreaming

      boolean isScreaming()
      获取此山羊是否为尖叫山羊. 尖叫山羊会发出尖叫声音并更频繁地冲撞. 它们不提供房屋贷款.

      原文:Gets if this is a screaming goat. A screaming goat makes screaming sounds and rams more often. They do not offer home loans.

      返回:
      尖叫状态
    • setScreaming

      void setScreaming(boolean screaming)
      设置此山羊是否为尖叫山羊. 尖叫山羊会发出尖叫声音并更频繁地冲撞. 它们不提供房屋贷款.

      原文:Sets if this is a screaming goat. A screaming goat makes screaming sounds and rams more often. They do not offer home loans.

      参数:
      screaming - 尖叫状态