接口 Pig

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

public interface Pig extends Animals, Vehicle
代表猪.
  • 方法详细资料

    • hasSaddle

      boolean hasSaddle()
      检查这个猪是否装上了鞍.

      原文: Check if the pig has a saddle.

      返回:
      这个猪是否装上了鞍
    • setSaddle

      void setSaddle(boolean saddled)
      设置这只猪是否装上了鞍.

      原文: Sets if the pig has a saddle or not

      参数:
      saddled - 这只猪是否装上了鞍