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 Summary
Modifier 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.Ageable
getAge, isAdult, setAdult, setAge, setBabyMethods inherited from interface org.bukkit.entity.Damageable
damage, damage, getAbsorptionAmount, getHealth, getMaxHealth, resetMaxHealth, setAbsorptionAmount, setHealth, setMaxHealthMethods inherited from interface org.bukkit.entity.Entity
addPassenger, 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.LivingEntity
addPotionEffect, 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, isLeashed, isRiptiding, isSleeping, isSwimming, rayTraceBlocks, rayTraceBlocks, removePotionEffect, setAI, setArrowCooldown, setArrowsInBody, setCanPickupItems, setCollidable, setGliding, setLastDamage, setLeashHolder, setMaximumAir, setMaximumNoDamageTicks, setMemory, setNoDamageTicks, setRemainingAir, setRemoveWhenFarAway, setSwimming, swingMainHand, swingOffHandMethods inherited from interface org.bukkit.loot.Lootable
getLootTable, getSeed, setLootTable, setSeedMethods inherited from interface org.bukkit.metadata.Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadataMethods inherited from interface org.bukkit.permissions.Permissible
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachmentMethods inherited from interface org.bukkit.persistence.PersistentDataHolder
getPersistentDataContainerMethods inherited from interface org.bukkit.projectiles.ProjectileSource
launchProjectile, launchProjectile
-
Method Details
-
setAgeLock
void 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 interfaceAgeable- Parameters:
lock- new lock
-
getAgeLock
boolean getAgeLock()Gets the current agelock.- Specified by:
getAgeLockin interfaceAgeable- Returns:
- the current agelock
-
canBreed
boolean canBreed()Return the ability to breed of the animal. -
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.
-