Package org.bukkit.entity
Interface Animals
- All Superinterfaces:
- Ageable,- Attributable,- Breedable,- CommandSender,- Creature,- Damageable,- Entity,- LivingEntity,- Lootable,- Metadatable,- Mob,- Nameable,- Permissible,- PersistentDataHolder,- ProjectileSource,- ServerOperator
- All Known Subinterfaces:
- AbstractHorse,- Axolotl,- Bee,- Cat,- ChestedHorse,- Chicken,- Cow,- Donkey,- Fox,- Goat,- Hoglin,- Horse,- Llama,- Mule,- MushroomCow,- Ocelot,- Panda,- Parrot,- Pig,- PolarBear,- Rabbit,- Sheep,- SkeletonHorse,- Steerable,- Strider,- Tameable,- TraderLlama,- Turtle,- Wolf,- ZombieHorse
Represents an Animal.
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.bukkit.entity.EntityEntity.Spigot
- 
Method SummaryModifier and TypeMethodDescriptionGet the UUID of the entity that caused this entity to enter theBreedable.canBreed()state.intGet the amount of ticks remaining for this entity in love mode.booleanisBreedItem(ItemStack stack) Check if the provided ItemStack is the correct item used for breeding this entity.booleanisBreedItem(Material material) Check if the provided ItemStack is the correct item used for breeding this entity..booleanGet whether or not this entity is in love mode and will produce offspring with another entity in love mode.voidsetBreedCause(UUID uuid) Set the UUID of the entity that caused this entity to enter theBreedable.canBreed()state.voidsetLoveModeTicks(int ticks) Set the amount of ticks for which this entity should be in love mode.Methods inherited from interface org.bukkit.entity.AgeablegetAge, isAdult, setAdult, setAge, setBabyMethods inherited from interface org.bukkit.attribute.AttributablegetAttributeMethods inherited from interface org.bukkit.entity.BreedablecanBreed, getAgeLock, setAgeLock, setBreedMethods inherited from interface org.bukkit.command.CommandSendergetName, sendMessage, sendMessage, sendMessage, sendMessageMethods inherited from interface org.bukkit.entity.Damageabledamage, damage, getAbsorptionAmount, getHealth, getMaxHealth, resetMaxHealth, setAbsorptionAmount, setHealth, setMaxHealthMethods inherited from interface org.bukkit.entity.EntityaddPassenger, addScoreboardTag, eject, getBoundingBox, getEntityId, getFacing, getFallDistance, getFireTicks, getFreezeTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getMaxFreezeTicks, getNearbyEntities, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getPose, getScoreboardTags, getServer, getSpawnCategory, getTicksLived, getType, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, hasGravity, isCustomNameVisible, isDead, isEmpty, isFrozen, isGlowing, isInsideVehicle, isInvulnerable, isInWater, isOnGround, isPersistent, isSilent, isValid, isVisualFire, leaveVehicle, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setFreezeTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setPassenger, setPersistent, setPortalCooldown, setRotation, setSilent, setTicksLived, setVelocity, setVisualFire, spigot, teleport, teleport, teleport, teleportMethods inherited from interface org.bukkit.entity.LivingEntityaddPotionEffect, addPotionEffect, addPotionEffects, attack, getActivePotionEffects, getArrowCooldown, getArrowsInBody, getCanPickupItems, getCategory, getCollidableExemptions, getEquipment, getEyeHeight, getEyeHeight, getEyeLocation, getKiller, getLastDamage, getLastTwoTargetBlocks, getLeashHolder, getLineOfSight, getMaximumAir, getMaximumNoDamageTicks, getMemory, getNoDamageTicks, getPotionEffect, getRemainingAir, getRemoveWhenFarAway, getTargetBlock, getTargetBlockExact, getTargetBlockExact, hasAI, hasLineOfSight, hasPotionEffect, isClimbing, isCollidable, isGliding, isInvisible, isLeashed, isRiptiding, isSleeping, isSwimming, rayTraceBlocks, rayTraceBlocks, removePotionEffect, setAI, setArrowCooldown, setArrowsInBody, setCanPickupItems, setCollidable, setGliding, setInvisible, setLastDamage, setLeashHolder, setMaximumAir, setMaximumNoDamageTicks, setMemory, setNoDamageTicks, setRemainingAir, setRemoveWhenFarAway, setSwimming, swingMainHand, swingOffHandMethods inherited from interface org.bukkit.loot.LootablegetLootTable, getSeed, setLootTable, setSeedMethods inherited from interface org.bukkit.metadata.MetadatablegetMetadata, hasMetadata, removeMetadata, setMetadataMethods inherited from interface org.bukkit.NameablegetCustomName, setCustomNameMethods inherited from interface org.bukkit.permissions.PermissibleaddAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachmentMethods inherited from interface org.bukkit.persistence.PersistentDataHoldergetPersistentDataContainerMethods inherited from interface org.bukkit.projectiles.ProjectileSourcelaunchProjectile, launchProjectileMethods inherited from interface org.bukkit.permissions.ServerOperatorisOp, setOp
- 
Method Details- 
getBreedCauseGet the UUID of the entity that caused this entity to enter theBreedable.canBreed()state.- Returns:
- uuid if set, or null
 
- 
setBreedCauseSet the UUID of the entity that caused this entity to enter theBreedable.canBreed()state.- Parameters:
- uuid- new uuid, or null
 
- 
isLoveModeboolean 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 ifgetLoveModeTicks()is greater than 0.- Returns:
- true if in love mode, false otherwise
 
- 
getLoveModeTicksint 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.- Returns:
- the remaining love mode ticks
 
- 
setLoveModeTicksvoid 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.- Parameters:
- ticks- the love mode ticks. Must be positive
 
- 
isBreedItemCheck if the provided ItemStack is the correct item used for breeding this entity.- Parameters:
- stack- ItemStack to check.
- Returns:
- if the provided ItemStack is the correct food item for this entity.
 
- 
isBreedItemCheck if the provided ItemStack is the correct item used for breeding this entity..- Parameters:
- material- Material to check.
- Returns:
- if the provided ItemStack is the correct food item for this entity.
 
 
-