接口 Breedable

所有超级接口:
Ageable, Attributable, CommandSender, Creature, Damageable, Entity, LivingEntity, Lootable, Metadatable, Mob, Nameable, Permissible, PersistentDataHolder, ProjectileSource, ServerOperator
所有已知子接口:
AbstractHorse, AbstractVillager, Animals, Axolotl, Bee, Camel, Cat, ChestedHorse, Chicken, Cow, Donkey, Fox, Frog, Goat, Hoglin, Horse, Llama, Mule, MushroomCow, Ocelot, Panda, Parrot, Pig, PolarBear, Rabbit, Sheep, SkeletonHorse, Sniffer, Steerable, Strider, Tameable, TraderLlama, Turtle, Villager, WanderingTrader, Wolf, ZombieHorse

public interface Breedable extends Ageable
代表一个有年龄和繁殖能力的实体.
  • 方法详细资料

    • setAgeLock

      void setAgeLock(boolean lock)
      锁定这只动物的年龄, 设置这个将防止动物从长成以准备进行交配.

      原文: Lock the age of the animal, setting this will prevent the animal from maturing or getting ready for mating.

      指定者:
      setAgeLock 在接口中 Ageable
      参数:
      lock - 是否锁定
    • getAgeLock

      boolean getAgeLock()
      获取这个动物的年龄是否被锁定.

      原文: Gets the current agelock.

      指定者:
      getAgeLock 在接口中 Ageable
      返回:
      这个动物的年龄是否被锁定
    • canBreed

      boolean canBreed()
      返回动物是否具有繁殖能力.

      原文: Return the ability to breed of the animal.

      指定者:
      canBreed 在接口中 Ageable
      返回:
      动物是否具有繁殖能力
    • setBreed

      void setBreed(boolean breed)
      设置动物是否具有繁殖能力,如果动物是年幼的设置此将立即长大.

      原文: Set breedability of the animal, if the animal is a baby and set to breed it will instantly grow up.

      指定者:
      setBreed 在接口中 Ageable
      参数:
      breed - 动物是否具有繁殖能力