Package org.bukkit.entity
Interface Animals
-
- All Superinterfaces:
Ageable
,Attributable
,CommandSender
,Creature
,Damageable
,Entity
,LivingEntity
,Lootable
,Metadatable
,Mob
,Nameable
,Permissible
,PersistentDataHolder
,ProjectileSource
,ServerOperator
- All Known Subinterfaces:
AbstractHorse
,Cat
,ChestedHorse
,Chicken
,Cow
,Donkey
,Fox
,Horse
,Llama
,Mule
,MushroomCow
,Ocelot
,Panda
,Parrot
,Pig
,PolarBear
,Rabbit
,Sheep
,SkeletonHorse
,TraderLlama
,Turtle
,Wolf
,ZombieHorse
public interface Animals extends Ageable
Represents an Animal.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.bukkit.entity.Entity
Entity.Spigot
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description UUID
getBreedCause()
Get the UUID of the entity that caused this entity to enter theAgeable.canBreed()
state.int
getLoveModeTicks()
Get the amount of ticks remaining for this entity in love mode.boolean
isLoveMode()
Get whether or not this entity is in love mode and will produce offspring with another entity in love mode.void
setBreedCause(UUID uuid)
Set the UUID of the entity that caused this entity to enter theAgeable.canBreed()
state.void
setLoveModeTicks(int ticks)
Set the amount of ticks for which this entity should be in love mode.-
Methods inherited from interface org.bukkit.entity.Ageable
canBreed, getAge, getAgeLock, isAdult, setAdult, setAge, setAgeLock, setBaby, setBreed
-
Methods inherited from interface org.bukkit.attribute.Attributable
getAttribute
-
Methods inherited from interface org.bukkit.command.CommandSender
getName, sendMessage, sendMessage
-
Methods inherited from interface org.bukkit.entity.Damageable
damage, damage, getAbsorptionAmount, getHealth, getMaxHealth, resetMaxHealth, setAbsorptionAmount, setHealth, setMaxHealth
-
Methods 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, teleport
-
Methods inherited from interface org.bukkit.entity.LivingEntity
addPotionEffect, addPotionEffect, addPotionEffects, getActivePotionEffects, getCanPickupItems, 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, setCanPickupItems, setCollidable, setGliding, setLastDamage, setLeashHolder, setMaximumAir, setMaximumNoDamageTicks, setMemory, setNoDamageTicks, setRemainingAir, setRemoveWhenFarAway, setSwimming
-
Methods inherited from interface org.bukkit.loot.Lootable
getLootTable, getSeed, setLootTable, setSeed
-
Methods inherited from interface org.bukkit.metadata.Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadata
-
Methods inherited from interface org.bukkit.Nameable
getCustomName, setCustomName
-
Methods inherited from interface org.bukkit.permissions.Permissible
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachment
-
Methods inherited from interface org.bukkit.persistence.PersistentDataHolder
getPersistentDataContainer
-
Methods inherited from interface org.bukkit.projectiles.ProjectileSource
launchProjectile, launchProjectile
-
Methods inherited from interface org.bukkit.permissions.ServerOperator
isOp, setOp
-
-
-
-
Method Detail
-
getBreedCause
@Nullable UUID getBreedCause()
Get the UUID of the entity that caused this entity to enter theAgeable.canBreed()
state.- Returns:
- uuid if set, or null
-
setBreedCause
void setBreedCause(@Nullable UUID uuid)
Set the UUID of the entity that caused this entity to enter theAgeable.canBreed()
state.- Parameters:
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 ifgetLoveModeTicks()
is greater than 0.- Returns:
- 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.- Returns:
- 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.- Parameters:
ticks
- the love mode ticks. Must be positive
-
-