程序包 org.bukkit.entity

# 接口 Breedable

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

所有已知子接口:
  `AbstractHorse`, `AbstractVillager`, `Animals`, `Armadillo`, `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
代表一个有年龄和繁殖能力的实体.

- ## 嵌套类概要

  ## 从接口继承的嵌套类/接口 org.bukkit.entity.Entity

  `Entity.Spigot`

- ## 方法概要

  修饰符和类型
  方法
  说明
  `boolean`
  `canBreed()`
  返回动物是否具有繁殖能力.
  `boolean`
  `getAgeLock()`
  获取这个动物的年龄是否被锁定.
  `void`
  `setAgeLock(boolean lock)`
  锁定这只动物的年龄, 设置这个将防止动物从长成以准备进行交配.
  `void`
  `setBreed(boolean breed)`
  设置动物是否具有繁殖能力,如果动物是年幼的设置此将立即长大.

  ### 从接口继承的方法 org.bukkit.entity.Ageable

  `getAge, isAdult, setAdult, setAge, setBaby`

  ### 从接口继承的方法 org.bukkit.attribute.Attributable

  `getAttribute`

  ### 从接口继承的方法 org.bukkit.command.CommandSender

  `getName, sendMessage, sendMessage, sendMessage, sendMessage`

  ### 从接口继承的方法 org.bukkit.entity.Damageable

  `damage, damage, damage, getAbsorptionAmount, getHealth, getMaxHealth, resetMaxHealth, setAbsorptionAmount, setHealth, setMaxHealth`

  ### 从接口继承的方法 org.bukkit.entity.Entity

  `addPassenger, addScoreboardTag, copy, copy, createSnapshot, eject, getAsString, getBoundingBox, getEntityId, getFacing, getFallDistance, getFireTicks, getFreezeTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getMaxFreezeTicks, getNearbyEntities, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getPose, getScoreboardTags, getServer, getSpawnCategory, getSwimHighSpeedSplashSound, getSwimSound, getSwimSplashSound, getTicksLived, getTrackedBy, getType, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, hasGravity, isCustomNameVisible, isDead, isEmpty, isFrozen, isGlowing, isInsideVehicle, isInvulnerable, isInWater, isInWorld, isOnGround, isPersistent, isSilent, isValid, isVisibleByDefault, isVisualFire, leaveVehicle, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setFreezeTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setPassenger, setPersistent, setPortalCooldown, setRotation, setSilent, setTicksLived, setVelocity, setVisibleByDefault, setVisualFire, spigot, teleport, teleport, teleport, teleport`

  ### 从接口继承的方法 org.bukkit.entity.LivingEntity

  `addPotionEffect, addPotionEffect, addPotionEffects, attack, canBreatheUnderwater, getActivePotionEffects, getArrowCooldown, getArrowsInBody, getCanPickupItems, getCategory, getCollidableExemptions, getDeathSound, getDrinkingSound, getEatingSound, getEquipment, getEyeHeight, getEyeHeight, getEyeLocation, getFallDamageSound, getFallDamageSoundBig, getFallDamageSoundSmall, getHurtSound, getItemInUse, getItemInUseTicks, getKiller, getLastDamage, getLastTwoTargetBlocks, getLeashHolder, getLineOfSight, getMaximumAir, getMaximumNoDamageTicks, getMemory, getNoActionTicks, getNoDamageTicks, getPotionEffect, getRemainingAir, getRemoveWhenFarAway, getTargetBlock, getTargetBlockExact, getTargetBlockExact, hasAI, hasLineOfSight, hasPotionEffect, isClimbing, isCollidable, isGliding, isInvisible, isLeashed, isRiptiding, isSleeping, isSwimming, playHurtAnimation, rayTraceBlocks, rayTraceBlocks, removePotionEffect, setAI, setArrowCooldown, setArrowsInBody, setCanPickupItems, setCollidable, setGliding, setInvisible, setItemInUseTicks, setLastDamage, setLeashHolder, setMaximumAir, setMaximumNoDamageTicks, setMemory, setNoActionTicks, setNoDamageTicks, setRemainingAir, setRemoveWhenFarAway, setSwimming, swingMainHand, swingOffHand`

  ### 从接口继承的方法 org.bukkit.loot.Lootable

  `getLootTable, getSeed, setLootTable, setSeed`

  ### 从接口继承的方法 org.bukkit.metadata.Metadatable

  `getMetadata, hasMetadata, removeMetadata, setMetadata`

  ### 从接口继承的方法 org.bukkit.entity.Mob

  `getAmbientSound, getTarget, isAware, setAware, setTarget`

  ### 从接口继承的方法 org.bukkit.Nameable

  `getCustomName, setCustomName`

  ### 从接口继承的方法 org.bukkit.permissions.Permissible

  `addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachment`

  ### 从接口继承的方法 org.bukkit.persistence.PersistentDataHolder

  `getPersistentDataContainer`

  ### 从接口继承的方法 org.bukkit.projectiles.ProjectileSource

  `launchProjectile, launchProjectile`

  ### 从接口继承的方法 org.bukkit.permissions.ServerOperator

  `isOp, setOp`

- ## 方法详细资料

  - ### 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` - 动物是否具有繁殖能力