程序包 org.bukkit.entity

# 接口 Animals

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

所有已知子接口:
  `AbstractHorse`, `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`, `Wolf`, `ZombieHorse`

public interface Animals extends Breedable
代表动物.

- ## 嵌套类概要

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

  `Entity.Spigot`

- ## 方法概要

  修饰符和类型
  方法
  说明
  `@Nullable UUID`
  `getBreedCause()`
  Get the UUID of the entity that caused this entity to enter the `Breedable.canBreed()` state.
  `int`
  `getLoveModeTicks()`
  Get the amount of ticks remaining for this entity in love mode.
  `boolean`
  `isBreedItem(@NotNull ItemStack stack)`
  Check if the provided ItemStack is the correct item used for breeding this entity.
  `boolean`
  `isBreedItem(@NotNull Material material)`
  Check if the provided ItemStack is the correct item used for breeding this entity..
  `boolean`
  `isLoveMode()`
  Get whether or not this entity is in love mode and will produce offspring with another entity in love mode.
  `void`
  `setBreedCause(@Nullable UUID uuid)`
  Set the UUID of the entity that caused this entity to enter the `Breedable.canBreed()` state.
  `void`
  `setLoveModeTicks(int ticks)`
  Set the amount of ticks for which this entity should be in love mode.

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

  `getAge, isAdult, setAdult, setAge, setBaby`

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

  `getAttribute`

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

  `canBreed, getAgeLock, setAgeLock, setBreed`

  ### 从接口继承的方法 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`

- ## 方法详细资料

  - ### getBreedCause

    @Nullable @Nullable UUID getBreedCause()
    Get the UUID of the entity that caused this entity to enter the `Breedable.canBreed()` state.
    返回:
      uuid if set, or null

  - ### setBreedCause

    void setBreedCause(@Nullable @Nullable UUID uuid)
    Set the UUID of the entity that caused this entity to enter the `Breedable.canBreed()` state.
    参数:
      `uuid` - new uuid, or null

  - ### isLoveMode

    boolean isLoveMode()
    Get whether or not this entity is in love mode and will produce offspring with another entity in love mode. Will return true if and only if `getLoveModeTicks()` is greater than 0.
    返回:
      true if in love mode, false otherwise

  - ### getLoveModeTicks

    int getLoveModeTicks()
    Get the amount of ticks remaining for this entity in love mode. If the entity is not in love mode, 0 will be returned.
    返回:
      the remaining love mode ticks

  - ### setLoveModeTicks

    void setLoveModeTicks(int ticks)
    Set the amount of ticks for which this entity should be in love mode. Setting the love mode ticks to 600 is the equivalent of a player feeding the entity their breeding item of choice.
    参数:
      `ticks` - the love mode ticks. Must be positive

  - ### isBreedItem

    boolean isBreedItem(@NotNull @NotNull ItemStack stack)
    Check if the provided ItemStack is the correct item used for breeding this entity.
    参数:
      `stack` - ItemStack to check.
    返回:
      if the provided ItemStack is the correct food item for this entity.

  - ### isBreedItem

    boolean isBreedItem(@NotNull @NotNull Material material)
    Check if the provided ItemStack is the correct item used for breeding this entity..
    参数:
      `material` - Material to check.
    返回:
      if the provided ItemStack is the correct food item for this entity.