Package org.bukkit.entity
Interface Ageable
- All Superinterfaces:
Attributable,CommandSender,Creature,Damageable,Entity,LivingEntity,Lootable,Metadatable,Mob,Nameable,Permissible,PersistentDataHolder,ProjectileSource,ServerOperator
- All Known Subinterfaces:
AbstractHorse,AbstractVillager,Animals,Armadillo,Axolotl,Bee,Breedable,Camel,Cat,ChestedHorse,Chicken,Cow,Donkey,Drowned,Fox,Frog,Goat,Hoglin,Horse,Husk,Llama,Mule,MushroomCow,Ocelot,Panda,Parrot,Pig,Piglin,PiglinAbstract,PiglinBrute,PigZombie,PolarBear,Rabbit,Sheep,SkeletonHorse,Sniffer,Steerable,Strider,Tameable,TraderLlama,Turtle,Villager,WanderingTrader,Wolf,Zoglin,Zombie,ZombieHorse,ZombieVillager
Represents an entity that can age.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.bukkit.entity.Entity
Entity.Spigot -
Method Summary
Modifier and TypeMethodDescriptionbooleancanBreed()Deprecated.intgetAge()Gets the age of this mob.booleanDeprecated.booleanisAdult()Returns true if the mob is an adult.voidsetAdult()Sets the age of the mob to an adultvoidsetAge(int age) Sets the age of this mob.voidsetAgeLock(boolean lock) Deprecated.voidsetBaby()Sets the age of the mob to a babyvoidsetBreed(boolean breed) Deprecated.Methods inherited from interface org.bukkit.attribute.Attributable
getAttributeMethods inherited from interface org.bukkit.command.CommandSender
getName, sendMessage, sendMessage, sendMessage, sendMessageMethods inherited from interface org.bukkit.entity.Damageable
damage, damage, damage, getAbsorptionAmount, getHealth, getMaxHealth, resetMaxHealth, setAbsorptionAmount, setHealth, setMaxHealthMethods inherited from interface 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, teleportMethods inherited from interface 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, 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.entity.Mob
getAmbientSound, getTarget, isAware, setAware, setTargetMethods inherited from interface org.bukkit.Nameable
getCustomName, setCustomNameMethods 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, launchProjectileMethods inherited from interface org.bukkit.permissions.ServerOperator
isOp, setOp
-
Method Details
-
getAge
int getAge()Gets the age of this mob.- Returns:
- Age
-
setAge
void setAge(int age) Sets the age of this mob.- Parameters:
age- New age
-
setAgeLock
Deprecated.Lock the age of the animal, setting this will prevent the animal from maturing or getting ready for mating.- Parameters:
lock- new lock
-
getAgeLock
Deprecated.Gets the current agelock.- Returns:
- the current agelock
-
setBaby
void setBaby()Sets the age of the mob to a baby -
setAdult
void setAdult()Sets the age of the mob to an adult -
isAdult
boolean isAdult()Returns true if the mob is an adult.- Returns:
- return true if the mob is an adult
-
canBreed
Deprecated.Return the ability to breed of the animal.- Returns:
- the ability to breed of the animal
-
setBreed
Deprecated.Set breedability of the animal, if the animal is a baby and set to breed it will instantly grow up.- Parameters:
breed- breedability of the animal
-
Breedable.canBreed()