Package org.bukkit.entity
Interface Breedable
- All Superinterfaces:
- Ageable,- Attributable,- CommandSender,- Creature,- Damageable,- Entity,- LivingEntity,- Lootable,- Metadatable,- Mob,- Nameable,- Permissible,- PersistentDataHolder,- ProjectileSource,- ServerOperator
- All Known Subinterfaces:
- AbstractHorse,- AbstractVillager,- Animals,- Bee,- Cat,- ChestedHorse,- Chicken,- Cow,- Donkey,- Fox,- Hoglin,- Horse,- Llama,- Mule,- MushroomCow,- Ocelot,- Panda,- Parrot,- Pig,- PolarBear,- Rabbit,- Sheep,- SkeletonHorse,- Steerable,- Strider,- Tameable,- TraderLlama,- Turtle,- Villager,- WanderingTrader,- Wolf,- ZombieHorse
public interface Breedable extends Ageable
Represents an entity that can age and breed.
- 
Nested Class Summary
- 
Method SummaryModifier and Type Method Description booleancanBreed()Return the ability to breed of the animal.booleangetAgeLock()Gets the current agelock.voidsetAgeLock(boolean lock)Lock the age of the animal, setting this will prevent the animal from maturing or getting ready for mating.voidsetBreed(boolean breed)Set breedability of the animal, if the animal is a baby and set to breed it will instantly grow up.Methods inherited from interface org.bukkit.entity.AgeablegetAge, isAdult, setAdult, setAge, setBabyMethods 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, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getNearbyEntities, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getPose, getScoreboardTags, getServer, getTicksLived, getType, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, hasGravity, isCustomNameVisible, isDead, isEmpty, isGlowing, isInsideVehicle, isInvulnerable, isOnGround, isPersistent, isSilent, isValid, leaveVehicle, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setPassenger, setPersistent, setPortalCooldown, setRotation, setSilent, setTicksLived, setVelocity, 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, 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.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, launchProjectile
- 
Method Details- 
setAgeLockvoid setAgeLock(boolean lock)Lock the age of the animal, setting this will prevent the animal from maturing or getting ready for mating.- Specified by:
- setAgeLockin interface- Ageable
- Parameters:
- lock- new lock
 
- 
getAgeLockboolean getAgeLock()Gets the current agelock.- Specified by:
- getAgeLockin interface- Ageable
- Returns:
- the current agelock
 
- 
canBreedboolean canBreed()Return the ability to breed of the animal.
- 
setBreedvoid setBreed(boolean breed)Set breedability of the animal, if the animal is a baby and set to breed it will instantly grow up.
 
-