接口 Pig

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

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

    • getVariant

      获取此猪的变种。
      返回:
      猪的变种.

      原文: Get the variant of this pig.

    • setVariant

      void setVariant(@NotNull @NotNull Pig.Variant variant)
      设置此猪的变种。
      参数:
      variant - 猪的变种.

      原文: Set the variant of this pig.