Uses of Interface
org.bukkit.entity.LivingEntity
Package
Description
The root package of the Bukkit API, contains generalized API classes.
Classes used to manipulate the voxels in a
world
,
including special states.Interfaces for non-voxel objects that can exist in a
world
, including all players, monsters, projectiles, etc.Events
relating to vehicular entities
.Classes involved in manipulating player inventories and item interactions.
Classes to represent various
potion
properties and manipulation.Multi and single purpose classes to facilitate various programmatic
concepts.
-
Uses of LivingEntity in com.destroystokyo.paper.entity
Modifier and TypeMethodDescriptionPathfinder.findPath
(LivingEntity target) Calculates a destination for the Entity to navigate to to reach the target entity, but does not set it as the current target.default boolean
Pathfinder.moveTo
(LivingEntity target) Calculates a destination for the Entity to navigate to to reach the target entity, and sets it with default speed.default boolean
Pathfinder.moveTo
(LivingEntity target, double speed) Calculates a destination for the Entity to navigate to to reach the target entity, and sets it with specified speed.void
RangedEntity.rangedAttack
(LivingEntity target, float charge) Attack the specified entity using a ranged attack. -
Uses of LivingEntity in com.destroystokyo.paper.event.entity
Modifier and TypeMethodDescriptionEntityJumpEvent.getEntity()
EntityKnockbackByEntityEvent.getEntity()
SlimeTargetLivingEntityEvent.getTarget()
Get the targeted entityWitchThrowPotionEvent.getTarget()
Modifier and TypeMethodDescriptionEnderDragonFireballHitEvent.getTargets()
The living entities hit by fireballModifierConstructorDescriptionEntityJumpEvent
(LivingEntity entity) EntityKnockbackByEntityEvent
(LivingEntity entity, Entity hitBy, EntityKnockbackEvent.Cause cause, float knockbackStrength, Vector knockback) SlimeTargetLivingEntityEvent
(Slime slime, LivingEntity target) WitchThrowPotionEvent
(Witch witch, LivingEntity target, @Nullable ItemStack potion) ModifierConstructorDescriptionEnderDragonFireballHitEvent
(DragonFireball fireball, Collection<LivingEntity> targets, AreaEffectCloud areaEffectCloud) -
Uses of LivingEntity in io.papermc.paper.entity
Modifier and TypeInterfaceDescriptioninterface
Entities that can have their collars colored.interface
Represents a fish that can school with other fish. -
Uses of LivingEntity in io.papermc.paper.event.entity
Modifier and TypeMethodDescriptionEntityFertilizeEggEvent.getEntity()
EntityLoadCrossbowEvent.getEntity()
EntityMoveEvent.getEntity()
EntityFertilizeEggEvent.getFather()
Provides the "father" entity in the fertilization process that is not responsible for initiating the offspring creation.EntityFertilizeEggEvent.getMother()
Provides the entity in the fertilization process that will eventually be responsible for "creating" offspring, may that be by setting a block that later hatches or dropping an egg that has to be placed.Modifier and TypeMethodDescriptionWaterBottleSplashEvent.getAffectedEntities()
Deprecated.WaterBottleSplashEvent.getToDamage()
Gets an immutable collection of entities that will take damage as a result of this event.WaterBottleSplashEvent.getToExtinguish()
Get a mutable collection of entities that will be extinguished as a result of this event.WaterBottleSplashEvent.getToRehydrate()
Get a mutable collection of entities that will be rehydrated by this.Modifier and TypeMethodDescriptionvoid
WaterBottleSplashEvent.damageAsWaterSensitive
(LivingEntity entity) Adds this entity to the group that will be damagedvoid
WaterBottleSplashEvent.doNotDamageAsWaterSensitive
(LivingEntity entity) Removes this entity from the group that will be damaged.double
WaterBottleSplashEvent.getIntensity
(LivingEntity entity) Deprecated.check ifWaterBottleSplashEvent.getToDamage()
contains an entityvoid
WaterBottleSplashEvent.setIntensity
(LivingEntity entity, double intensity) Deprecated.useWaterBottleSplashEvent.damageAsWaterSensitive(LivingEntity)
orWaterBottleSplashEvent.doNotDamageAsWaterSensitive(LivingEntity)
to change which entities are damagedModifierConstructorDescriptionEntityFertilizeEggEvent
(LivingEntity mother, LivingEntity father, @Nullable Player breeder, @Nullable ItemStack bredWith, int experience) EntityLoadCrossbowEvent
(LivingEntity entity, ItemStack crossbow, EquipmentSlot hand) EntityMoveEvent
(LivingEntity entity, Location from, Location to) ModifierConstructorDescriptionWaterBottleSplashEvent
(ThrownPotion potion, @Nullable Entity hitEntity, @Nullable Block hitBlock, @Nullable BlockFace hitFace, Map<LivingEntity, Double> affectedEntities, Set<LivingEntity> rehydrate, Set<LivingEntity> extinguish) WaterBottleSplashEvent
(ThrownPotion potion, @Nullable Entity hitEntity, @Nullable Block hitBlock, @Nullable BlockFace hitFace, Map<LivingEntity, Double> affectedEntities, Set<LivingEntity> rehydrate, Set<LivingEntity> extinguish) -
Uses of LivingEntity in io.papermc.paper.event.player
Modifier and TypeMethodDescriptionPlayerNameEntityEvent.getEntity()
Gets the entity involved in this event.Modifier and TypeMethodDescriptionvoid
PlayerNameEntityEvent.setEntity
(LivingEntity entity) Sets the entity involved in this event.ModifierConstructorDescriptionPlayerNameEntityEvent
(Player player, LivingEntity entity, Component name, boolean persistent) -
Uses of LivingEntity in org.bukkit
Modifier and TypeMethodDescription<T extends LivingEntity>
TWorld.spawn
(@NotNull Location location, @NotNull Class<T> clazz, CreatureSpawnEvent.SpawnReason spawnReason, boolean randomizeData, @Nullable Consumer<? super T> function) Creates a new entity at the givenLocation
with the supplied function run before the entity is added to the world.Modifier and TypeMethodDescriptionRegionAccessor.getLivingEntities()
Get a list of all living entities in this RegionAccessorWorld.getLivingEntities()
Get a list of all living entities in this WorldLocation.getNearbyLivingEntities
(double radius) Gets nearby players within the specified radius (bounding box)Location.getNearbyLivingEntities
(double xzRadius, double yRadius) Gets nearby players within the specified radius (bounding box)Location.getNearbyLivingEntities
(double xRadius, double yRadius, double zRadius) Gets nearby players within the specified radius (bounding box)Location.getNearbyLivingEntities
(double xRadius, double yRadius, double zRadius, @Nullable Predicate<? super LivingEntity> predicate) Gets nearby players within the specified radius (bounding box)Location.getNearbyLivingEntities
(double xzRadius, double yRadius, @Nullable Predicate<? super LivingEntity> predicate) Gets nearby players within the specified radius (bounding box)Location.getNearbyLivingEntities
(double radius, @Nullable Predicate<? super LivingEntity> predicate) Gets nearby players within the specified radius (bounding box)default @NotNull Collection
<LivingEntity> World.getNearbyLivingEntities
(@NotNull Location loc, double radius) Gets nearby LivingEntities within the specified radius (bounding box)default @NotNull Collection
<LivingEntity> World.getNearbyLivingEntities
(@NotNull Location loc, double xzRadius, double yRadius) Gets nearby LivingEntities within the specified radius (bounding box)default @NotNull Collection
<LivingEntity> World.getNearbyLivingEntities
(@NotNull Location loc, double xRadius, double yRadius, double zRadius) Gets nearby LivingEntities within the specified radius (bounding box)default @NotNull Collection
<LivingEntity> World.getNearbyLivingEntities
(@NotNull Location loc, double xRadius, double yRadius, double zRadius, @Nullable Predicate<? super LivingEntity> predicate) Gets nearby LivingEntities within the specified radius (bounding box)default @NotNull Collection
<LivingEntity> World.getNearbyLivingEntities
(@NotNull Location loc, double xzRadius, double yRadius, @Nullable Predicate<? super LivingEntity> predicate) Gets nearby LivingEntities within the specified radius (bounding box)default @NotNull Collection
<LivingEntity> World.getNearbyLivingEntities
(@NotNull Location loc, double radius, @Nullable Predicate<? super LivingEntity> predicate) Gets nearby LivingEntities within the specified radius (bounding box)Modifier and TypeMethodDescriptionLocation.getNearbyLivingEntities
(double xRadius, double yRadius, double zRadius, @Nullable Predicate<? super LivingEntity> predicate) Gets nearby players within the specified radius (bounding box)Location.getNearbyLivingEntities
(double xzRadius, double yRadius, @Nullable Predicate<? super LivingEntity> predicate) Gets nearby players within the specified radius (bounding box)Location.getNearbyLivingEntities
(double radius, @Nullable Predicate<? super LivingEntity> predicate) Gets nearby players within the specified radius (bounding box)default @NotNull Collection
<LivingEntity> World.getNearbyLivingEntities
(@NotNull Location loc, double xRadius, double yRadius, double zRadius, @Nullable Predicate<? super LivingEntity> predicate) Gets nearby LivingEntities within the specified radius (bounding box)default @NotNull Collection
<LivingEntity> World.getNearbyLivingEntities
(@NotNull Location loc, double xzRadius, double yRadius, @Nullable Predicate<? super LivingEntity> predicate) Gets nearby LivingEntities within the specified radius (bounding box)default @NotNull Collection
<LivingEntity> World.getNearbyLivingEntities
(@NotNull Location loc, double radius, @Nullable Predicate<? super LivingEntity> predicate) Gets nearby LivingEntities within the specified radius (bounding box) -
Uses of LivingEntity in org.bukkit.block
Modifier and TypeMethodDescriptionBeacon.getEntitiesInRange()
Returns the list of players within the beacon's range of effect.Modifier and TypeMethodDescriptionvoid
Structure.setAuthor
(@NotNull LivingEntity livingEntity) Set the name of whoever created this structure using aLivingEntity
.boolean
Conduit.setTarget
(@Nullable LivingEntity target) Set the conduit's hunting target. -
Uses of LivingEntity in org.bukkit.entity
Modifier and TypeInterfaceDescriptioninterface
Represents a Horse-like creature.interface
This interface defines or represents the abstract concept of skeleton-like entities on the server.interface
Represents a villager NPCinterface
Represents an entity that can age.interface
An Allay.interface
Represents an ambient mobinterface
Represents an Animal.interface
Represents an Armadillo.interface
interface
An Axolotl.interface
Represents a Batinterface
Represents a Bee.interface
Represents a Blaze monsterinterface
Represents a Bogged Skeleton.interface
Represents an entity that can age and breed.interface
Represents a Breeze.interface
Represents a Camel.interface
Meow.interface
Represents a Spider.interface
Represents Horse-like creatures which can carry an inventory.interface
Represents a Chicken.interface
Represents a cod fish.interface
Represents a complex living entity - one that is made up of various smaller partsinterface
Represents a Cow.interface
Represents a Creaking.interface
Represents a Creaking spawned from a creaking heart which will not persist.interface
Represents a Creature.interface
Represents a Creeperinterface
interface
Represents a Donkey - variant ofChestedHorse
.interface
Drowned zombie.interface
Represents an ElderGuardian - variant ofGuardian
.interface
Represents an Ender Dragoninterface
Represents an Enderman.interface
interface
Represents an Enemyinterface
Represents an Evoker "Illager".interface
Represents a fish entity.interface
Represents a Flying Entity.interface
What does the fox say?interface
A Frog.interface
Represents a Ghast.interface
Represents a Giant.interface
A Glow Squid.interface
A Goat.interface
A mechanical creature that may harm enemies.interface
interface
Represents a Hoglin.interface
Represents a Horse.interface
Represents a human entity, such as an NPC or a playerinterface
Represents a Husk - variant ofZombie
.interface
Represents a type of "Illager".interface
Represents an Illusioner "Illager".interface
An iron Golem that protects Villages.interface
Represents a Llama.interface
Represents a MagmaCube.interface
Represents a Mob.interface
Represents a Monster.interface
Represents a Mule - variant ofChestedHorse
.interface
Represents a mushroomCow
interface
Represents a non-player characterinterface
A wild tameable catinterface
Panda entity.interface
Represents a Parrot.interface
Represents a phantom.interface
Represents a Pig.interface
Represents a Piglin.interface
Piglin / Piglin Brute.interface
Represents a Piglin Brute.interface
Represents a Pig Zombie.interface
Illager entity.interface
Represents a player, connected or notinterface
Represents a polar bear.interface
Represents a puffer fish.interface
interface
interface
Illager beast.interface
Represents a salmon fish.interface
Represents a Sheep.interface
interface
Represents a Silverfish.interface
Represents a Skeleton.interface
Represents a SkeletonHorse - variant ofAbstractHorse
.interface
Represents a Slime.interface
Represents a Sniffer.interface
Represents a snowman entityinterface
Represents a spell casting "Illager".interface
Represents a Spider.interface
Represents a Squid.interface
Represents an entity which may be saddled, ridden and steered using an item.interface
Represents a Stray - variant ofAbstractSkeleton
.interface
Represents a Strider.interface
A babyFrog
.interface
interface
Represents a trader Llama.interface
Tropical fish.interface
Represents a turtle.interface
Represents a Vex.interface
Represents a villager NPCinterface
Represents a Vindicator.interface
Represents a wandering trader NPCinterface
A Warden.interface
Represents a Water Mobinterface
Represents a Witchinterface
Represents a Wither bossinterface
Represents a WitherSkeleton - variant ofAbstractSkeleton
.interface
Represents a Wolfinterface
Represents a Zoglin.interface
Represents a Zombie.interface
Represents a ZombieHorse - variant ofAbstractHorse
.interface
Modifier and TypeMethodDescriptionFirework.getAttachedTo()
Get theLivingEntity
to which this firework is attached.default @Nullable LivingEntity
Firework.getBoostedEntity()
Deprecated.Warden.getEntityAngryAt()
Gets theLivingEntity
at which this warden is most angry.EvokerFangs.getOwner()
Gets theLivingEntity
which summoned the fangs.Mob.getTarget()
Gets the current target of this MobWither.getTarget
(@NotNull Wither.Head head) This method will get the target of individual headsWither.Head
of the wither.Modifier and TypeMethodDescriptionvoid
Goat.ram
(@NotNull LivingEntity entity) Makes the goat ram at the specified entityvoid
Player.sendEquipmentChange
(@NotNull LivingEntity entity, @NotNull Map<EquipmentSlot, ItemStack> items) Send multiple equipment changes for the target entity.void
Player.sendEquipmentChange
(@NotNull LivingEntity entity, @NotNull EquipmentSlot slot, @Nullable ItemStack item) Send an equipment change for the target entity.void
Player.sendPotionEffectChange
(@NotNull LivingEntity entity, @NotNull PotionEffect effect) Change a potion effect for the target entity.void
Player.sendPotionEffectChangeRemove
(@NotNull LivingEntity entity, @NotNull PotionEffectType type) Remove a potion effect for the target entity.boolean
Firework.setAttachedTo
(@Nullable LivingEntity entity) Set theLivingEntity
to which this firework is attached.void
EvokerFangs.setOwner
(@Nullable LivingEntity owner) Sets theLivingEntity
which summoned the fangs.void
Mob.setTarget
(@Nullable LivingEntity target) Instructs this Mob to set the specified LivingEntity as its target.void
Wither.setTarget
(@Nullable LivingEntity target) Instructs this Mob to set the specified LivingEntity as its target.void
Wither.setTarget
(@NotNull Wither.Head head, @Nullable LivingEntity target) This method will set the target of individual headsWither.Head
of the wither. -
Uses of LivingEntity in org.bukkit.event.block
Modifier and TypeMethodDescriptionBlockDispenseArmorEvent.getTargetEntity()
Get the living entity on which the armor was dispensed.Modifier and TypeMethodDescriptionBellResonateEvent.getResonatedEntities()
Get a mutable list of allLivingEntities
to be highlighted by the bell's resonating.ModifierConstructorDescriptionBlockDispenseArmorEvent
(@NotNull Block block, @NotNull ItemStack dispensed, @NotNull LivingEntity target) ModifierConstructorDescriptionBellResonateEvent
(@NotNull Block theBlock, @NotNull List<LivingEntity> resonatedEntities) -
Uses of LivingEntity in org.bukkit.event.entity
Modifier and TypeFieldDescriptionprotected final Map
<LivingEntity, Double> PotionSplashEvent.affectedEntities
Modifier and TypeMethodDescriptionEntityBreedEvent.getBreeder()
Gets the Entity responsible for breeding.ArrowBodyCountChangeEvent.getEntity()
CreatureSpawnEvent.getEntity()
EntityBreakDoorEvent.getEntity()
EntityBreedEvent.getEntity()
EntityCreatePortalEvent.getEntity()
Deprecated.EntityDeathEvent.getEntity()
EntityKnockbackEvent.getEntity()
Deprecated, for removal: This API element is subject to removal in a future version.EntityPickupItemEvent.getEntity()
EntityResurrectEvent.getEntity()
EntityShootBowEvent.getEntity()
EntityTameEvent.getEntity()
EntityBreedEvent.getFather()
Gets the other parent of the newly born entity.EntityBreedEvent.getMother()
Gets the parent creating this entity.EntityTargetLivingEntityEvent.getTarget()
Modifier and TypeMethodDescriptionAreaEffectCloudApplyEvent.getAffectedEntities()
Retrieves a mutable list of the effected entitiesPotionSplashEvent.getAffectedEntities()
Retrieves a list of all effected entitiesModifier and TypeMethodDescriptiondouble
PotionSplashEvent.getIntensity
(@NotNull LivingEntity entity) Gets the intensity of the potion's effects for given entity; This depends on the distance to the impact centervoid
PotionSplashEvent.setIntensity
(@NotNull LivingEntity entity, double intensity) Overwrites the intensity for a given entityModifierConstructorDescriptionArrowBodyCountChangeEvent
(@NotNull LivingEntity entity, int oldAmount, int newAmount, boolean isReset) CreatureSpawnEvent
(@NotNull LivingEntity spawnee, @NotNull CreatureSpawnEvent.SpawnReason spawnReason) EntityBreakDoorEvent
(@NotNull LivingEntity entity, @NotNull Block targetBlock, BlockData to) EntityBreedEvent
(@NotNull LivingEntity child, @NotNull LivingEntity mother, @NotNull LivingEntity father, @Nullable LivingEntity breeder, @Nullable ItemStack bredWith, int experience) EntityCreatePortalEvent
(@NotNull LivingEntity what, @NotNull List<BlockState> blocks, @NotNull PortalType type) Deprecated.EntityDeathEvent
(@NotNull LivingEntity entity, @NotNull DamageSource damageSource, @NotNull List<ItemStack> drops) EntityDeathEvent
(@NotNull LivingEntity what, @NotNull DamageSource damageSource, @NotNull List<ItemStack> drops, int droppedExp) EntityKnockbackByEntityEvent
(@NotNull LivingEntity entity, @NotNull Entity source, @NotNull EntityKnockbackEvent.KnockbackCause cause, double force, @NotNull Vector rawKnockback, @NotNull Vector knockback) Deprecated, for removal: This API element is subject to removal in a future version.EntityKnockbackEvent
(@NotNull LivingEntity entity, @NotNull EntityKnockbackEvent.KnockbackCause cause, double force, @NotNull Vector rawKnockback, @NotNull Vector knockback) Deprecated, for removal: This API element is subject to removal in a future version.EntityPickupItemEvent
(@NotNull LivingEntity entity, @NotNull Item item, int remaining) EntityPotionEffectEvent
(@NotNull LivingEntity livingEntity, @Nullable PotionEffect oldEffect, @Nullable PotionEffect newEffect, @NotNull EntityPotionEffectEvent.Cause cause, @NotNull EntityPotionEffectEvent.Action action, boolean override) Deprecated.EntityResurrectEvent
(@NotNull LivingEntity what, @Nullable EquipmentSlot hand) EntityShootBowEvent
(@NotNull LivingEntity shooter, @Nullable ItemStack bow, @NotNull Entity projectile, float force) Deprecated.EntityShootBowEvent
(@NotNull LivingEntity shooter, @Nullable ItemStack bow, @NotNull ItemStack arrowItem, @NotNull Entity projectile, float force) Deprecated.EntityShootBowEvent
(@NotNull LivingEntity shooter, @Nullable ItemStack bow, @Nullable ItemStack consumable, @NotNull Entity projectile, @NotNull EquipmentSlot hand, float force, boolean consumeItem) EntityTameEvent
(@NotNull LivingEntity entity, @NotNull AnimalTamer owner) EntityTargetLivingEntityEvent
(@NotNull Entity entity, @Nullable LivingEntity target, @NotNull EntityTargetEvent.TargetReason reason) EntityToggleGlideEvent
(@NotNull LivingEntity who, boolean isGliding) EntityToggleSwimEvent
(@NotNull LivingEntity who, boolean isSwimming) ModifierConstructorDescriptionAreaEffectCloudApplyEvent
(@NotNull AreaEffectCloud entity, @NotNull List<LivingEntity> affectedEntities) PotionSplashEvent
(@NotNull ThrownPotion potion, @NotNull Map<LivingEntity, Double> affectedEntities) Deprecated.PotionSplashEvent
(@NotNull ThrownPotion potion, @Nullable Entity hitEntity, @Nullable Block hitBlock, @Nullable BlockFace hitFace, @NotNull Map<LivingEntity, Double> affectedEntities) -
Uses of LivingEntity in org.bukkit.event.vehicle
Modifier and TypeMethodDescriptionVehicleExitEvent.getExited()
Get the living entity that exited the vehicle.ModifierConstructorDescriptionVehicleExitEvent
(@NotNull Vehicle vehicle, @NotNull LivingEntity exited) VehicleExitEvent
(@NotNull Vehicle vehicle, @NotNull LivingEntity exited, boolean isCancellable) -
Uses of LivingEntity in org.bukkit.inventory
Modifier and TypeMethodDescriptionItemStack.damage
(int amount, LivingEntity livingEntity) Damages this itemstack by the specified amount.int
ItemStack.getMaxItemUseDuration
(LivingEntity entity) -
Uses of LivingEntity in org.bukkit.potion
Modifier and TypeMethodDescriptionboolean
PotionEffect.apply
(@NotNull LivingEntity entity) Attempts to add the effect represented by this object to the givenLivingEntity
. -
Uses of LivingEntity in org.bukkit.util
ModifierConstructorDescriptionBlockIterator
(@NotNull LivingEntity entity) Constructs the BlockIterator.BlockIterator
(@NotNull LivingEntity entity, int maxDistance) Constructs the BlockIterator. -
Uses of LivingEntity in org.purpurmc.purpur.event.entity
Modifier and TypeMethodDescriptionGoatRamEntityEvent.getRammedEntity()
Returns the entity that was rammed by the goat
WaterBottleSplashEvent.getToDamage()