Uses of Interface
org.bukkit.entity.Entity
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.Classes concerning damage types and sources applicable to living entities.
Interfaces for non-voxel objects that can exist in a
world
, including all players, monsters, projectiles, etc.Interfaces for various
Minecart
types.Events
relating to entities that hang
.Events
relating to vehicular entities
.Classes involved in manipulating player inventories and item interactions.
Classes relevant to loot table manipulation and generation.
Interfaces used to manage the client side score display system.
Classes related to creating or using
structures
without creating Structure
blocks
in the world.Multi and single purpose classes to facilitate various programmatic
concepts.
-
Uses of Entity in com.destroystokyo.paper.brigadier
Modifier and TypeMethodDescriptionBukkitBrigadierCommandSource.getBukkitEntity()
Deprecated, for removal: This API element is subject to removal in a future version. -
Uses of Entity in com.destroystokyo.paper.entity
Modifier and TypeMethodDescriptionTargetEntityInfo.getEntity()
Deprecated, for removal: This API element is subject to removal in a future version.Get the entity that is targetedModifierConstructorDescriptionTargetEntityInfo
(@NotNull Entity entity, @NotNull Vector hitVec) Deprecated, for removal: This API element is subject to removal in a future version. -
Uses of Entity in com.destroystokyo.paper.event.block
Modifier and TypeMethodDescriptionTNTPrimeEvent.getPrimerEntity()
Deprecated, for removal: This API element is subject to removal in a future version.Gets the TNT primerEntity
.ModifierConstructorDescriptionTNTPrimeEvent
(@NotNull Block theBlock, @NotNull TNTPrimeEvent.PrimeReason reason, @Nullable Entity primerEntity) Deprecated, for removal: This API element is subject to removal in a future version. -
Uses of Entity in com.destroystokyo.paper.event.entity
Modifier and TypeMethodDescriptionProjectileCollideEvent.getCollidedWith()
Deprecated.Get the entity the projectile collided withEntityPathfindEvent.getEntity()
The Entity that is pathfinding.@NonNull Entity
EntityKnockbackByEntityEvent.getHitBy()
Gets the causing entity.EntityZapEvent.getReplacementEntity()
Gets the entity that will replace the struck entity.PhantomPreSpawnEvent.getSpawningEntity()
Get the entity this phantom is spawning forEntityPathfindEvent.getTargetEntity()
If the Entity is trying to pathfind to an entity, this is the entity in relation.EntityTransformedEvent.getTransformed()
Deprecated, for removal: This API element is subject to removal in a future version.The entity after it has transformedModifierConstructorDescriptionEntityAddToWorldEvent
(@NotNull Entity entity, @NotNull World world) EntityKnockbackByEntityEvent
(@NonNull LivingEntity entity, @NonNull Entity hitBy, @NonNull EntityKnockbackEvent.Cause cause, float knockbackStrength, @NonNull Vector knockback) EntityPathfindEvent
(@NotNull Entity entity, @NotNull Location location, @Nullable Entity targetEntity) EntityRemoveFromWorldEvent
(@NotNull Entity entity, @NotNull World world) EntityTeleportEndGatewayEvent
(@NotNull Entity entity, @NotNull Location from, @NotNull Location to, @NotNull EndGateway gateway) EntityTransformedEvent
(@NotNull Entity entity, @NotNull Entity transformed, @NotNull EntityTransformedEvent.TransformedReason reason) Deprecated, for removal: This API element is subject to removal in a future version.EntityZapEvent
(@NotNull Entity entity, @NotNull LightningStrike bolt, @NotNull Entity replacementEntity) PhantomPreSpawnEvent
(@NotNull Location location, @NotNull Entity entity, CreatureSpawnEvent.SpawnReason reason) ProjectileCollideEvent
(@NotNull Projectile projectile, @NotNull Entity collidedWith) Deprecated. -
Uses of Entity in com.destroystokyo.paper.event.player
Modifier and TypeMethodDescriptionPlayerAttackEntityCooldownResetEvent.getAttackedEntity()
Returns the entity attacked by the playerPlayerStartSpectatingEntityEvent.getCurrentSpectatorTarget()
Gets the entity that the player is currently spectating or themselves if they weren't spectating anythingPlayerStartSpectatingEntityEvent.getNewSpectatorTarget()
Gets the new entity that the player will now be spectatingPlayerStopSpectatingEntityEvent.getSpectatorTarget()
Gets the entity that the player is spectatingModifierConstructorDescriptionPlayerAttackEntityCooldownResetEvent
(@NotNull Player player, @NotNull Entity attackedEntity, float cooledAttackStrength) PlayerStartSpectatingEntityEvent
(@NotNull Player player, @NotNull Entity currentSpectatorTarget, @NotNull Entity newSpectatorTarget) PlayerStopSpectatingEntityEvent
(@NotNull Player player, @NotNull Entity spectatorTarget) -
Uses of Entity in com.destroystokyo.paper.loottable
-
Uses of Entity in io.papermc.paper.command.brigadier
Modifier and TypeMethodDescriptionCommandSourceStack.getExecutor()
Gets the entity that executes this command. -
Uses of Entity in io.papermc.paper.entity
Modifier and TypeInterfaceDescriptioninterface
Represents an entity that can be bucketed.interface
Entities that can have their collars colored.interface
Represents a fish that can school with other fish.interface
Represents an entity that can be sheared. -
Uses of Entity in io.papermc.paper.event.block
Modifier and TypeMethodDescriptionBlockBreakProgressUpdateEvent.getEntity()
The entity breaking the block. -
Uses of Entity in io.papermc.paper.event.entity
Modifier and TypeMethodDescriptionEntityCompostItemEvent.getEntity()
Gets the entity that interacted with the composter.@NonNull Entity
EntityPushedByEntityAttackEvent.getPushedBy()
Gets the entity which pushed the affected entity.WardenAngerChangeEvent.getTarget()
Gets the entity which triggered this anger update.ModifierConstructorDescriptionEntityCompostItemEvent
(@NotNull Entity entity, @NotNull Block composter, @NotNull ItemStack item, boolean willRaiseLevel) EntityDamageItemEvent
(@NotNull Entity entity, @NotNull ItemStack item, int damage) EntityInsideBlockEvent
(@NotNull Entity entity, @NotNull Block block) EntityKnockbackEvent
(@NonNull Entity entity, @NonNull EntityKnockbackEvent.Cause cause, @NonNull Vector knockback) EntityPortalReadyEvent
(@NotNull Entity entity, @Nullable World targetWorld, @NotNull PortalType portalType) EntityPushedByEntityAttackEvent
(@NonNull Entity entity, @NonNull EntityKnockbackEvent.Cause cause, @NonNull Entity pushedBy, @NonNull Vector knockback) EntityToggleSitEvent
(@NotNull Entity entity, boolean isSitting) WardenAngerChangeEvent
(@NotNull Warden warden, @NotNull Entity target, int oldAnger, int newAnger) WaterBottleSplashEvent
(@NotNull ThrownPotion potion, @Nullable Entity hitEntity, @Nullable Block hitBlock, @Nullable BlockFace hitFace, @NotNull Map<LivingEntity, Double> affectedEntities, @NotNull Set<LivingEntity> rehydrate, @NotNull Set<LivingEntity> extinguish) -
Uses of Entity in io.papermc.paper.event.player
Modifier and TypeMethodDescriptionPrePlayerAttackEntityEvent.getAttacked()
Gets the entity that was attacked in this event.PlayerShieldDisableEvent.getDamager()
Provides the damager that disabled the shield.PlayerTrackEntityEvent.getEntity()
Gets the entity that will be trackedPlayerUntrackEntityEvent.getEntity()
Gets the entity that will be untrackedModifierConstructorDescriptionPlayerShieldDisableEvent
(@NotNull Player player, @NotNull Entity damager, int cooldown) PlayerTrackEntityEvent
(@NotNull Player player, @NotNull Entity entity) PlayerUntrackEntityEvent
(@NotNull Player player, @NotNull Entity entity) PrePlayerAttackEntityEvent
(@NotNull Player player, @NotNull Entity attacked, boolean willAttack) -
Uses of Entity in io.papermc.paper.text
Modifier and TypeMethodDescriptionPaperComponents.resolveWithContext
(@NotNull Component input, @Nullable CommandSender context, @Nullable Entity scoreboardSubject) Resolves a component with a specific command sender and subject.PaperComponents.resolveWithContext
(@NotNull Component input, @Nullable CommandSender context, @Nullable Entity scoreboardSubject, boolean bypassPermissions) Resolves a component with a specific command sender and subject. -
Uses of Entity in me.totalfreedom.scissors.event.player
ModifierConstructorDescriptionSpectatorTeleportEvent
(@NotNull Player player, @NotNull Entity target) -
Uses of Entity in org.bukkit
Modifier and TypeMethodDescription<T extends Entity>
TRegionAccessor.addEntity
(T entity) Spawns a previously created entity in the world.<T extends Entity>
TRegionAccessor.createEntity
(@NotNull Location location, @NotNull Class<T> clazz) Creates an entity of a specific class at the givenLocation
but does not spawn it in the world.<T extends Entity>
@NotNull Collection<T> RegionAccessor.getEntitiesByClass
(@NotNull Class<T> cls) Get a collection of all entities in this RegionAccessor matching the given class/interface<T extends Entity>
@NotNull Collection<T> World.getEntitiesByClass
(@NotNull Class<T> cls) Get a collection of all entities in this World matching the given class/interface<T extends Entity>
@NotNull Collection<T> World.getEntitiesByClass
(@NotNull Class<T>... classes) Deprecated.<T extends Entity>
@NotNull Collection<T> Location.getNearbyEntitiesByType
(@Nullable Class<? extends Entity> clazz, double xRadius, double yRadius, double zRadius, @Nullable Predicate<? super T> predicate) Gets all nearby entities of the specified type, within the specified radius (bounding box)<T extends Entity>
@NotNull Collection<T> Location.getNearbyEntitiesByType
(@Nullable Class<? extends T> clazz, double radius) Gets all nearby entities of the specified type, within the specified radius (bounding box)<T extends Entity>
@NotNull Collection<T> Location.getNearbyEntitiesByType
(@Nullable Class<? extends T> clazz, double xzRadius, double yRadius) Gets all nearby entities of the specified type, within the specified radius, with x and x radius matching (bounding box)<T extends Entity>
@NotNull Collection<T> Location.getNearbyEntitiesByType
(@Nullable Class<? extends T> clazz, double xRadius, double yRadius, double zRadius) Gets all nearby entities of the specified type, within the specified radius (bounding box)<T extends Entity>
@NotNull Collection<T> Location.getNearbyEntitiesByType
(@Nullable Class<? extends T> clazz, double xzRadius, double yRadius, @Nullable Predicate<? super T> predicate) Gets all nearby entities of the specified type, within the specified radius, with x and x radius matching (bounding box)<T extends Entity>
@NotNull Collection<T> Location.getNearbyEntitiesByType
(@Nullable Class<? extends T> clazz, double radius, @Nullable Predicate<? super T> predicate) Gets all nearby entities of the specified type, within the specified radius (bounding box)default <T extends Entity>
@NotNull Collection<T> World.getNearbyEntitiesByType
(@Nullable Class<? extends Entity> clazz, @NotNull Location loc, double xRadius, double yRadius, double zRadius, @Nullable Predicate<? super T> predicate) Gets all nearby entities of the specified type, within the specified radius (bounding box)default <T extends Entity>
@NotNull Collection<T> World.getNearbyEntitiesByType
(@Nullable Class<? extends T> clazz, @NotNull Location loc, double radius) Gets all nearby entities of the specified type, within the specified radius (bounding box)default <T extends Entity>
@NotNull Collection<T> World.getNearbyEntitiesByType
(@Nullable Class<? extends T> clazz, @NotNull Location loc, double xzRadius, double yRadius) Gets all nearby entities of the specified type, within the specified radius, with x and x radius matching (bounding box)default <T extends Entity>
@NotNull Collection<T> World.getNearbyEntitiesByType
(@Nullable Class<? extends T> clazz, @NotNull Location loc, double xRadius, double yRadius, double zRadius) Gets all nearby entities of the specified type, within the specified radius (bounding box)default <T extends Entity>
@NotNull Collection<T> World.getNearbyEntitiesByType
(@Nullable Class<? extends T> clazz, @NotNull Location loc, double xzRadius, double yRadius, @Nullable Predicate<? super T> predicate) Gets all nearby entities of the specified type, within the specified radius, with x and x radius matching (bounding box)default <T extends Entity>
@NotNull Collection<T> World.getNearbyEntitiesByType
(@Nullable Class<? extends T> clazz, @NotNull Location loc, double radius, @Nullable Predicate<? super T> predicate) Gets all nearby entities of the specified type, within the specified radius (bounding box)<T extends Entity>
TSpawn an entity of a specific class at the givenLocation
<T extends Entity>
TRegionAccessor.spawn
(@NotNull Location location, @NotNull Class<T> clazz, 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.default <T extends Entity>
TRegionAccessor.spawn
(@NotNull Location location, @NotNull Class<T> clazz, @Nullable Consumer<? super T> function) Spawn an entity of a specific class at the givenLocation
, with the supplied function run before the entity is added to the world.<T extends Entity>
TRegionAccessor.spawn
(@NotNull Location location, @NotNull Class<T> clazz, @Nullable Consumer<? super T> function, @NotNull CreatureSpawnEvent.SpawnReason reason) default <T extends Entity>
TRegionAccessor.spawn
(@NotNull Location location, @NotNull Class<T> clazz, @NotNull CreatureSpawnEvent.SpawnReason reason) default <T extends Entity>
TRegionAccessor.spawn
(@NotNull Location location, @NotNull Class<T> clazz, @NotNull CreatureSpawnEvent.SpawnReason reason, @Nullable Consumer<? super T> function) Modifier and TypeMethodDescriptiondefault Entity
UnsafeValues.deserializeEntity
(byte[] data, World world) Deprecated.UnsafeValues.deserializeEntity
(byte[] data, World world, boolean preserveUUID) Deprecated.Chunk.getEntities()
Get a list of all entities in the chunk.Gets an entity on the server by its UUIDGets an entity on the server by its UUIDVibration.Destination.EntityDestination.getEntity()
Gets an entity in this world by its UUIDRegionAccessor.spawnEntity
(@NotNull Location location, @NotNull EntityType type) Creates a entity at the givenLocation
RegionAccessor.spawnEntity
(@NotNull Location loc, @NotNull EntityType type, boolean randomizeData) Creates a new entity at the givenLocation
.RegionAccessor.spawnEntity
(@NotNull Location loc, @NotNull EntityType type, @NotNull CreatureSpawnEvent.SpawnReason reason) RegionAccessor.spawnEntity
(@NotNull Location loc, @NotNull EntityType type, @NotNull CreatureSpawnEvent.SpawnReason reason, @Nullable Consumer<? super Entity> function) Modifier and TypeMethodDescriptionEntityEffect.getApplicable()
Gets entity superclass which this affect is applicable to.RegionAccessor.getEntities()
Get a list of all entities in this RegionAccessorWorld.getEntities()
Get a list of all entities in this WorldRegionAccessor.getEntitiesByClasses
(@NotNull Class<?>... classes) Get a collection of all entities in this RegionAccessor matching any of the given classes/interfacesWorld.getEntitiesByClasses
(@NotNull Class<?>... classes) Get a collection of all entities in this World matching any of the given classes/interfacesLocation.getNearbyEntities
(double x, double y, double z) Returns a list of entities within a bounding box centered around a Location.World.getNearbyEntities
(@NotNull Location location, double x, double y, double z) Returns a list of entities within a bounding box centered around a Location.World.getNearbyEntities
(@NotNull Location location, double x, double y, double z, @Nullable Predicate<? super Entity> filter) Returns a list of entities within a bounding box centered around a Location.World.getNearbyEntities
(@NotNull BoundingBox boundingBox) Returns a list of entities within the given bounding box.World.getNearbyEntities
(@NotNull BoundingBox boundingBox, @Nullable Predicate<? super Entity> filter) Returns a list of entities within the given bounding box.Bukkit.selectEntities
(@NotNull CommandSender sender, @NotNull String selector) Selects entities using the given Vanilla selector.Server.selectEntities
(@NotNull CommandSender sender, @NotNull String selector) Selects entities using the given Vanilla selector.Modifier and TypeMethodDescriptionboolean
Location.createExplosion
(@Nullable Entity source, float power) Creates explosion at this location with given power, with the specified entity as the source.boolean
Location.createExplosion
(@Nullable Entity source, float power, boolean setFire) Creates explosion at this location with given power and optionally setting blocks on fire, with the specified entity as the source.boolean
Location.createExplosion
(@Nullable Entity source, float power, boolean setFire, boolean breakBlocks) Creates explosion at this location with given power and optionally setting blocks on fire, with the specified entity as the source.boolean
World.createExplosion
(double x, double y, double z, float power, boolean setFire, boolean breakBlocks, @Nullable Entity source) Creates explosion at given coordinates with given power and optionally setting blocks on fire or breaking blocks.boolean
World.createExplosion
(@NotNull Location loc, float power, boolean setFire, boolean breakBlocks, @Nullable Entity source) Creates explosion at given coordinates with given power and optionally setting blocks on fire or breaking blocks.default boolean
World.createExplosion
(@NotNull Entity source, float power) Creates explosion at given entities location with given power and optionally setting blocks on fire, with the specified entity as the source.default boolean
World.createExplosion
(@NotNull Entity source, float power, boolean setFire) Creates explosion at given entities location with given power and optionally setting blocks on fire, with the specified entity as the source.default boolean
World.createExplosion
(@NotNull Entity source, float power, boolean setFire, boolean breakBlocks) Creates explosion at given entities location with given power and optionally setting blocks on fire, with the specified entity as the source.default boolean
World.createExplosion
(@Nullable Entity source, @NotNull Location loc, float power) Creates explosion at given location with given power, with the specified entity as the source.default boolean
World.createExplosion
(@Nullable Entity source, @NotNull Location loc, float power, boolean setFire) Creates explosion at given location with given power and optionally setting blocks on fire, with the specified entity as the source.boolean
World.createExplosion
(@Nullable Entity source, @NotNull Location loc, float power, boolean setFire, boolean breakBlocks) Creates explosion at given location with given power and optionally setting blocks on fire, with the specified entity as the source.boolean
EntityEffect.isApplicableTo
(@NotNull Entity entity) Checks if this effect is applicable to the given entity.boolean
Checks if a given entity is frozen.static boolean
Bukkit.isOwnedByCurrentRegion
(@NotNull Entity entity) Returns whether the current thread is ticking a region and that the region being ticked owns the specified entity.boolean
Server.isOwnedByCurrentRegion
(@NotNull Entity entity) Returns whether the current thread is ticking a region and that the region being ticked owns the specified entity.void
Play a Sound at the location of the provided entity in the World.void
World.playSound
(@NotNull Entity entity, @NotNull String sound, @NotNull SoundCategory category, float volume, float pitch) Play a Sound at the location of the provided entity in the World.void
World.playSound
(@NotNull Entity entity, @NotNull String sound, @NotNull SoundCategory category, float volume, float pitch, long seed) Play a Sound at the location of the provided entity in the World.void
Play a Sound at the location of the provided entity in the World.void
World.playSound
(@NotNull Entity entity, @NotNull Sound sound, @NotNull SoundCategory category, float volume, float pitch) Play a Sound at the location of the provided entity in the World.void
World.playSound
(@NotNull Entity entity, @NotNull Sound sound, @NotNull SoundCategory category, float volume, float pitch, long seed) Play a Sound at the location of the provided entity in the World.UnsafeValues.resolveWithContext
(Component component, CommandSender context, Entity scoreboardSubject, boolean bypassPermissions) Deprecated.void
World.sendGameEvent
(@Nullable Entity sourceEntity, @NotNull GameEvent gameEvent, @NotNull Vector position) Posts a specified game event at a locationbyte[]
UnsafeValues.serializeEntity
(Entity entity) Deprecated.Modifier and TypeMethodDescriptionWorld.getNearbyEntities
(@NotNull Location location, double x, double y, double z, @Nullable Predicate<? super Entity> filter) Returns a list of entities within a bounding box centered around a Location.World.getNearbyEntities
(@NotNull BoundingBox boundingBox, @Nullable Predicate<? super Entity> filter) Returns a list of entities within the given bounding box.<T extends Entity>
@NotNull Collection<T> Location.getNearbyEntitiesByType
(@Nullable Class<? extends Entity> clazz, double xRadius, double yRadius, double zRadius, @Nullable Predicate<? super T> predicate) Gets all nearby entities of the specified type, within the specified radius (bounding box)default <T extends Entity>
@NotNull Collection<T> World.getNearbyEntitiesByType
(@Nullable Class<? extends Entity> clazz, @NotNull Location loc, double xRadius, double yRadius, double zRadius, @Nullable Predicate<? super T> predicate) Gets all nearby entities of the specified type, within the specified radius (bounding box)boolean
EntityEffect.isApplicableTo
(@NotNull Class<? extends Entity> clazz) Checks if this effect is applicable to the given entity class.World.rayTrace
(@NotNull Position start, @NotNull Vector direction, double maxDistance, @NotNull FluidCollisionMode fluidCollisionMode, boolean ignorePassableBlocks, double raySize, @Nullable Predicate<? super Entity> filter, @Nullable Predicate<? super Block> canCollide) Performs a ray trace that checks for both block and entity collisions.World.rayTrace
(@NotNull Location start, @NotNull Vector direction, double maxDistance, @NotNull FluidCollisionMode fluidCollisionMode, boolean ignorePassableBlocks, double raySize, @Nullable Predicate<? super Entity> filter) Performs a ray trace that checks for both block and entity collisions.World.rayTraceEntities
(@NotNull Position start, @NotNull Vector direction, double maxDistance, double raySize, @Nullable Predicate<? super Entity> filter) Performs a ray trace that checks for entity collisions.World.rayTraceEntities
(@NotNull Location start, @NotNull Vector direction, double maxDistance, double raySize, @Nullable Predicate<? super Entity> filter) Performs a ray trace that checks for entity collisions.World.rayTraceEntities
(@NotNull Location start, @NotNull Vector direction, double maxDistance, @Nullable Predicate<? super Entity> filter) Performs a ray trace that checks for entity collisions.RegionAccessor.spawnEntity
(@NotNull Location loc, @NotNull EntityType type, @NotNull CreatureSpawnEvent.SpawnReason reason, @Nullable Consumer<? super Entity> function) -
Uses of Entity in org.bukkit.block
Modifier and TypeInterfaceDescriptioninterface
EntityBlockStorage<T extends Entity>
Represents a captured state of a block which stores entities.Modifier and TypeMethodDescriptionReturns a list of items which could drop by the entity destroying this block with a specific tool.Returns an immutable list of items which would drop by the entity destroying this block state with a specific toolSign.getInteractableSideFor
(@NotNull Entity entity) Compute the side facing the specified entity.boolean
Ring this bell in the direction that the bell is facing.boolean
Ring this bell. -
Uses of Entity in org.bukkit.damage
Modifier and TypeMethodDescriptionDamageSource.getCausingEntity()
Get theEntity
that caused the damage to occur.DamageSource.getDirectEntity()
Get theEntity
that directly caused the damage.Modifier and TypeMethodDescriptionDamageSource.Builder.withCausingEntity
(@NotNull Entity entity) Set theEntity
that caused the damage.DamageSource.Builder.withDirectEntity
(@NotNull Entity entity) Set theEntity
that directly inflicted the damage. -
Uses of Entity in org.bukkit.entity
Modifier and TypeInterfaceDescriptioninterface
Represents an arrow.interface
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 a Wind Charge.interface
Represents an entity that can age.interface
An Allay.interface
Represents an ambient mobinterface
Represents an Animal.interface
Represents an area effect cloud which will imbue a potion effect onto entities which enter it.interface
Represents an Armadillo.interface
interface
interface
An Axolotl.interface
Represents a Batinterface
Represents a Bee.interface
Represents a Blaze monsterinterface
Represents a block display entity.interface
Represents a boat entity.interface
Represents a Bogged Skeleton.interface
Represents the Boss Entity.interface
Represents an entity that can age and breed.interface
Represents a Breeze.interface
Represents a Wind Charge.interface
Represents a Camel.interface
Meow.interface
Represents a Spider.interface
ABoat
with a chest.interface
Represents Horse-like creatures which can carry an inventory.interface
Represents a Chicken.interface
Represents a cod fish.interface
Represents a single part of aComplexLivingEntity
interface
Represents a complex living entity - one that is made up of various smaller partsinterface
Represents a Cow.interface
Represents a Creature.interface
Represents a Creeperinterface
Represents anEntity
that has health and can take damage.interface
Represents a display entity which is designed to only have a visual function.interface
interface
Represents a Donkey - variant ofChestedHorse
.interface
interface
Drowned zombie.interface
Represents a thrown egg.interface
Represents an ElderGuardian - variant ofGuardian
.interface
A crystal that heals nearby EnderDragonsinterface
Represents an Ender Dragoninterface
Represents an ender dragon partinterface
Represents an Enderman.interface
interface
Represents a thrown Ender Pearl entityinterface
Represents an EnderSignal, which is created upon throwing an ender eye.interface
Represents an Enemyinterface
Represents an Evoker "Illager".interface
Represents Evoker Fangs.interface
Represents an Experience Orb.interface
A representation of an explosive entityinterface
Represents a falling blockinterface
Represents a Fireball.interface
interface
Represents a fish entity.interface
Represents a fishing hook.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 Item Frame.interface
A Glow Squid.interface
A Goat.interface
A mechanical creature that may harm enemies.interface
interface
Represents a Hanging entityinterface
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
Represents an entity designed to only record interactions.interface
An iron Golem that protects Villages.interface
Represents a dropped item.interface
Represents an item display entity.interface
Represents an Item Frameinterface
Represents a largeFireball
interface
Represents a Leash Hitch on a fenceinterface
Represents an instance of a lightning strike.interface
Deprecated, for removal: This API element is subject to removal in a future version.interface
Represents a living entity, such as a monster or playerinterface
Represents a Llama.interface
Represents Llama spit.interface
Represents a MagmaCube.interface
A Marker entity, exists only on the server.interface
Represents a minecart entity.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
Represents an ominous item spawner.interface
Represents a Painting.interface
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 shootable entity.interface
Represents a puffer fish.interface
interface
interface
Illager beast.interface
Represents a salmon fish.interface
Represents a Sheep.interface
interface
interface
Represents a Silverfish.interface
Represents a sized fireball.interface
Represents a Skeleton.interface
Represents a SkeletonHorse - variant ofAbstractHorse
.interface
Represents a Slime.interface
Represents a smallFireball
interface
Represents a Sniffer.interface
Represents a snowball.interface
Represents a snowman entityinterface
Represents a spectral arrow.interface
Represents a spell casting "Illager".interface
Represents a Spider.interface
Deprecated, for removal: This API element is subject to removal in a future version.should not be used for anything, useThrownPotion
and set the potion via the methods there.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 text display entity.interface
interface
Represents a thrown Experience bottle.interface
Represents a thrown potion bottleinterface
Deprecated.tipped status depends only on base potion type not being UNCRAFTABLE and effects being empty.interface
Represents a Primed TNT.interface
Represents a trader Llama.interface
Represents a thrown trident.interface
Tropical fish.interface
Represents a turtle.interface
Represents a vehicle entity.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 Wind Charge.interface
Represents a Witchinterface
Represents a Wither bossinterface
Represents a WitherSkeleton - variant ofAbstractSkeleton
.interface
Represents a wither skullFireball
.interface
Represents a Wolfinterface
Represents a Zoglin.interface
Represents a Zombie.interface
Represents a ZombieHorse - variant ofAbstractHorse
.interface
Modifier and TypeMethodDescriptionEntity.copy()
Creates a copy of this entity and all its data.Creates a copy of this entity and all its data.EntitySnapshot.createEntity
(@NotNull Location to) Creates an entity using this template and spawns it at the provided location.EntitySnapshot.createEntity
(@NotNull World world) Creates an entity using this template.LightningStrike.getCausingEntity()
Returns the potential entity that caused this lightning strike to spawn in the world.FishHook.getHookedEntity()
Get the entity hooked by this fish hook.LivingEntity.getLeashHolder()
Gets the entity that is currently leading this entity.Entity.getPassenger()
Deprecated.entities may have multiple passengers, usegetPassengers()
HumanEntity.getShoulderEntityLeft()
Deprecated.There are currently no well defined semantics regarding serialized entities in Bukkit.HumanEntity.getShoulderEntityRight()
Deprecated.There are currently no well defined semantics regarding serialized entities in Bukkit.TNTPrimed.getSource()
Gets the source of this primed TNT.Player.getSpectatorTarget()
Gets the entity which is followed by the camera when inGameMode.SPECTATOR
.ShulkerBullet.getTarget()
Retrieve the target of this bullet.LivingEntity.getTargetEntity
(int maxDistance) Gets information about the entity being targetedLivingEntity.getTargetEntity
(int maxDistance, boolean ignoreBlocks) Gets information about the entity being targetedFrog.getTongueTarget()
Gets the tongue target of this frog.Entity.getVehicle()
Get the vehicle that this entity is inside.HumanEntity.releaseLeftShoulderEntity()
If there is an Entity on this entities left shoulder, it will be released to the world and returned.HumanEntity.releaseRightShoulderEntity()
If there is an Entity on this entities left shoulder, it will be released to the world and returned.Modifier and TypeMethodDescriptionEntityType.getEntityClass()
Entity.getNearbyEntities
(double x, double y, double z) Returns a list of entities within a bounding box centered around this entityEntity.getPassengers()
Gets a list of passengers of this vehicle.Modifier and TypeMethodDescriptionboolean
Entity.addPassenger
(@NotNull Entity passenger) Add a passenger to the vehicle.void
Makes this entity attack the given entity with a melee attack.boolean
Projectile.canHitEntity
(@NotNull Entity entity) Gets whether this projectile can hit an entity.boolean
Checks to see if an entity has been visually hidden from this player.void
Warden.clearAnger
(@NotNull Entity entity) Clears the anger level of this warden.void
Deals the given amount of damage to this entity from a specifiedEntity
.int
Gets the anger level of this warden.boolean
LivingEntity.hasLineOfSight
(@NotNull Entity other) Checks whether the living entity has block line of sight to another.void
Player.hideEntity
(@NotNull Plugin plugin, @NotNull Entity entity) Visually hides an entity from this player.void
Makes this projectile hit a specific entity.void
Makes this projectile hit a specific entity from a specific point.void
Warden.increaseAnger
(@NotNull Entity entity, int increase) Increases the anger level of this warden.void
Instruct this Mob to look at a specific Entityvoid
Instruct this Mob to look at a specific Entityvoid
Player.lookAt
(Entity entity, LookAnchor playerAnchor, LookAnchor entityAnchor) Causes the player to look towards the given entity.void
Play a sound for a player at the location of the entity.void
Player.playSound
(@NotNull Entity entity, @NotNull String sound, @NotNull SoundCategory category, float volume, float pitch) Play a sound for a player at the location of the entity.void
Player.playSound
(@NotNull Entity entity, @NotNull String sound, @NotNull SoundCategory category, float volume, float pitch, long seed) Play a sound for a player at the location of the entity.void
Play a sound for a player at the location of the entity.void
Player.playSound
(@NotNull Entity entity, @NotNull Sound sound, @NotNull SoundCategory category, float volume, float pitch) Play a sound for a player at the location of the entity.void
Player.playSound
(@NotNull Entity entity, @NotNull Sound sound, @NotNull SoundCategory category, float volume, float pitch, long seed) Play a sound for a player at the location of the entity.boolean
Entity.removePassenger
(@NotNull Entity passenger) Remove a passenger from the vehicle.void
Player.sendBlockDamage
(@NotNull Location loc, float progress, @NotNull Entity source) Send block damage.void
Sets the anger level of this warden.void
FishHook.setHookedEntity
(@Nullable Entity entity) Set the entity hooked by this fish hook.boolean
LivingEntity.setLeashHolder
(@Nullable Entity holder) Sets the leash on this entity to be held by the supplied entity.boolean
Entity.setPassenger
(@NotNull Entity passenger) Deprecated.entities may have multiple passengers, useaddPassenger(org.bukkit.entity.Entity)
void
HumanEntity.setShoulderEntityLeft
(@Nullable Entity entity) Deprecated.There are currently no well defined semantics regarding serialized entities in Bukkit.void
HumanEntity.setShoulderEntityRight
(@Nullable Entity entity) Deprecated.There are currently no well defined semantics regarding serialized entities in Bukkit.void
Sets the source of this primed TNT.void
Player.setSpectatorTarget
(@Nullable Entity entity) Sets the entity which is followed by the camera when inGameMode.SPECTATOR
.void
Sets the target of this bulletvoid
Frog.setTongueTarget
(@Nullable Entity target) Sets the tongue target of this frog.void
Player.showEntity
(@NotNull Plugin plugin, @NotNull Entity entity) Allows this player to see an entity that was previously hidden.boolean
Teleports this entity to the target Entity.boolean
Entity.teleport
(@NotNull Entity destination, @NotNull PlayerTeleportEvent.TeleportCause cause) Teleports this entity to the target Entity.boolean
Enderman.teleportTowards
(@NotNull Entity entity) Randomly teleports the Enderman towards the givenentity
. -
Uses of Entity in org.bukkit.entity.minecart
Modifier and TypeInterfaceDescriptioninterface
interface
Represents a Minecart with TNT inside it that can explode when triggered.interface
Represents a Minecart with a Hopper inside itinterface
Represents a powered minecart.interface
Represents a minecart that can have certainentities
as passengers.interface
Represents a Minecart with anentity spawner
inside it.interface
Represents a minecart with a chest. -
Uses of Entity in org.bukkit.event.block
Modifier and TypeMethodDescriptionBellRingEvent.getEntity()
Get theEntity
that rang the bell (if there was one).BlockReceiveGameEvent.getEntity()
Get the entity which triggered this event, if present.BlockShearEntityEvent.getEntity()
Gets the entity that was sheared.CauldronLevelChangeEvent.getEntity()
Get entity which did this.EntityBlockFormEvent.getEntity()
Get the entity that formed the block.BlockIgniteEvent.getIgnitingEntity()
Gets the entity who ignited this blockTNTPrimeEvent.getPrimingEntity()
Get the entity that caused the TNT to be primed.ModifierConstructorDescriptionBlockIgniteEvent
(@NotNull Block theBlock, @NotNull BlockIgniteEvent.IgniteCause cause, @Nullable Entity ignitingEntity) BlockIgniteEvent
(@NotNull Block theBlock, @NotNull BlockIgniteEvent.IgniteCause cause, @Nullable Entity ignitingEntity, @Nullable Block ignitingBlock) BlockShearEntityEvent
(@NotNull Block dispenser, @NotNull Entity sheared, @NotNull ItemStack tool, List<ItemStack> drops) CauldronLevelChangeEvent
(@NotNull Block block, @Nullable Entity entity, @NotNull CauldronLevelChangeEvent.ChangeReason reason, @NotNull BlockState newBlock) EntityBlockFormEvent
(@NotNull Entity entity, @NotNull Block block, @NotNull BlockState blockstate) TNTPrimeEvent
(@NotNull Block block, @NotNull TNTPrimeEvent.PrimeCause igniteCause, @Nullable Entity primingEntity, @Nullable Block primingBlock) -
Uses of Entity in org.bukkit.event.entity
Modifier and TypeMethodDescriptionEntityCombustByEntityEvent.getCombuster()
Get the entity that caused the combustion event.EntityDamageByEntityEvent.getDamager()
Returns the entity that damaged the defender.EntityDismountEvent.getDismounted()
Gets the entity which will no longer be ridden.EntityEvent.getEntity()
Returns the Entity involved in this eventPlayerLeashEntityEvent.getEntity()
Returns the entity being leashed.ProjectileHitEvent.getHitEntity()
Gets the entity that was hit, if it was an entity that was hit.PlayerLeashEntityEvent.getLeashHolder()
Returns the entity that is holding the leash.EntityMountEvent.getMount()
Gets the entity which will be ridden.EntityShootBowEvent.getProjectile()
Gets the projectile which will be launched by this eventEntityKnockbackByEntityEvent.getSourceEntity()
Deprecated, for removal: This API element is subject to removal in a future version.Get the entity that has caused knockback to the defender.EntityTargetEvent.getTarget()
Get the entity that this is targeting.PigZombieAngerEvent.getTarget()
Gets the entity (if any) which triggered this anger update.EntityTransformEvent.getTransformedEntity()
Gets the entity that the original entity was transformed to.Modifier and TypeMethodDescriptionEntityTransformEvent.getTransformedEntities()
Gets the entities that the original entity was transformed to.Modifier and TypeMethodDescriptionvoid
EntityShootBowEvent.setProjectile
(@NotNull Entity projectile) Replaces the projectile which will be launchedvoid
Set the entity that you want the mob to target instead.void
Set the Entity that you want the mob to target.ModifierConstructorDescriptionEntityAirChangeEvent
(@NotNull Entity what, int amount) EntityCombustByBlockEvent
(@Nullable Block combuster, @NotNull Entity combustee, int duration) EntityCombustByEntityEvent
(@NotNull Entity combuster, @NotNull Entity combustee, int duration) EntityCombustEvent
(@NotNull Entity combustee, int duration) EntityDamageByBlockEvent
(@Nullable Block damager, @Nullable BlockState damagerState, @NotNull Entity damagee, @NotNull EntityDamageEvent.DamageCause cause, @NotNull DamageSource damageSource, double damage) EntityDamageByBlockEvent
(@Nullable Block damager, @Nullable BlockState damagerState, @NotNull Entity damagee, @NotNull EntityDamageEvent.DamageCause cause, @NotNull DamageSource damageSource, @NotNull Map<EntityDamageEvent.DamageModifier, Double> modifiers, @NotNull Map<EntityDamageEvent.DamageModifier, ? extends Function<? super Double, Double>> modifierFunctions) EntityDamageByBlockEvent
(@Nullable Block damager, @NotNull Entity damagee, @NotNull EntityDamageEvent.DamageCause cause, double damage) Deprecated, for removal: This API element is subject to removal in a future version.EntityDamageByBlockEvent
(@Nullable Block damager, @NotNull Entity damagee, @NotNull EntityDamageEvent.DamageCause cause, @NotNull Map<EntityDamageEvent.DamageModifier, Double> modifiers, @NotNull Map<EntityDamageEvent.DamageModifier, ? extends Function<? super Double, Double>> modifierFunctions) Deprecated, for removal: This API element is subject to removal in a future version.EntityDamageByEntityEvent
(@NotNull Entity damager, @NotNull Entity damagee, @NotNull EntityDamageEvent.DamageCause cause, double damage) Deprecated, for removal: This API element is subject to removal in a future version.EntityDamageByEntityEvent
(@NotNull Entity damager, @NotNull Entity damagee, @NotNull EntityDamageEvent.DamageCause cause, @NotNull Map<EntityDamageEvent.DamageModifier, Double> modifiers, @NotNull Map<EntityDamageEvent.DamageModifier, ? extends Function<? super Double, Double>> modifierFunctions) Deprecated, for removal: This API element is subject to removal in a future version.EntityDamageByEntityEvent
(@NotNull Entity damager, @NotNull Entity damagee, @NotNull EntityDamageEvent.DamageCause cause, @NotNull DamageSource damageSource, double damage) Deprecated.EntityDamageByEntityEvent
(@NotNull Entity damager, @NotNull Entity damagee, @NotNull EntityDamageEvent.DamageCause cause, @NotNull DamageSource damageSource, @NotNull Map<EntityDamageEvent.DamageModifier, Double> modifiers, @NotNull Map<EntityDamageEvent.DamageModifier, ? extends Function<? super Double, Double>> modifierFunctions) Deprecated.EntityDamageByEntityEvent
(@NotNull Entity damager, @NotNull Entity damagee, @NotNull EntityDamageEvent.DamageCause cause, @NotNull DamageSource damageSource, @NotNull Map<EntityDamageEvent.DamageModifier, Double> modifiers, @NotNull Map<EntityDamageEvent.DamageModifier, ? extends Function<? super Double, Double>> modifierFunctions, boolean critical) EntityDamageEvent
(@NotNull Entity damagee, @NotNull EntityDamageEvent.DamageCause cause, double damage) Deprecated, for removal: This API element is subject to removal in a future version.EntityDamageEvent
(@NotNull Entity damagee, @NotNull EntityDamageEvent.DamageCause cause, @NotNull Map<EntityDamageEvent.DamageModifier, Double> modifiers, @NotNull Map<EntityDamageEvent.DamageModifier, ? extends Function<? super Double, Double>> modifierFunctions) Deprecated, for removal: This API element is subject to removal in a future version.EntityDamageEvent
(@NotNull Entity damagee, @NotNull EntityDamageEvent.DamageCause cause, @NotNull DamageSource damageSource, double damage) EntityDamageEvent
(@NotNull Entity damagee, @NotNull EntityDamageEvent.DamageCause cause, @NotNull DamageSource damageSource, @NotNull Map<EntityDamageEvent.DamageModifier, Double> modifiers, @NotNull Map<EntityDamageEvent.DamageModifier, ? extends Function<? super Double, Double>> modifierFunctions) EntityDismountEvent
(@NotNull Entity what, @NotNull Entity dismounted) EntityDismountEvent
(@NotNull Entity what, @NotNull Entity dismounted, boolean isCancellable) EntityDropItemEvent
(@NotNull Entity entity, @NotNull Item drop) EntityEnterBlockEvent
(@NotNull Entity entity, @NotNull Block block) EntityEvent
(@NotNull Entity what) EntityExplodeEvent
(@NotNull Entity what, @NotNull Location location, @NotNull List<Block> blocks, float yield) EntityInteractEvent
(@NotNull Entity entity, @NotNull Block block) 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.EntityMountEvent
(@NotNull Entity what, @NotNull Entity mount) EntityPlaceEvent
(@NotNull Entity entity, @Nullable Player player, @NotNull Block block, @NotNull BlockFace blockFace) Deprecated.EntityPlaceEvent
(@NotNull Entity entity, @Nullable Player player, @NotNull Block block, @NotNull BlockFace blockFace, @NotNull EquipmentSlot hand) EntityPortalEnterEvent
(@NotNull Entity entity, @NotNull Location location) EntityPortalEvent
(@NotNull Entity entity, @NotNull Location from, @Nullable Location to, int searchRadius) EntityPortalEvent
(@NotNull Entity entity, @NotNull Location from, @Nullable Location to, int searchRadius, PortalType portalType) EntityPortalExitEvent
(@NotNull Entity entity, @NotNull Location from, @NotNull Location to, @NotNull Vector before, @NotNull Vector after) EntityPoseChangeEvent
(@NotNull Entity who, @NotNull Pose pose) EntityRegainHealthEvent
(@NotNull Entity entity, double amount, @NotNull EntityRegainHealthEvent.RegainReason regainReason) EntityRegainHealthEvent
(@NotNull Entity entity, double amount, @NotNull EntityRegainHealthEvent.RegainReason regainReason, boolean isFastRegen) EntityRemoveEvent
(@NotNull Entity what, @NotNull EntityRemoveEvent.Cause cause) Deprecated, for removal: This API element is subject to removal in a future version.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) EntitySpawnEvent
(@NotNull Entity spawnee) EntityTargetEvent
(@NotNull Entity entity, @Nullable Entity target, @NotNull EntityTargetEvent.TargetReason reason) EntityTargetLivingEntityEvent
(@NotNull Entity entity, @Nullable LivingEntity target, @NotNull EntityTargetEvent.TargetReason reason) EntityTransformEvent
(@NotNull Entity original, @NotNull List<Entity> convertedList, @NotNull EntityTransformEvent.TransformReason transformReason) EntityUnleashEvent
(@NotNull Entity entity, @NotNull EntityUnleashEvent.UnleashReason reason) Deprecated.EntityUnleashEvent
(@NotNull Entity entity, @NotNull EntityUnleashEvent.UnleashReason reason, boolean dropLeash) ExpBottleEvent
(@NotNull ThrownExpBottle bottle, @Nullable Entity hitEntity, @Nullable Block hitBlock, @Nullable BlockFace hitFace, int exp) ExplosionPrimeEvent
(@NotNull Entity what, float radius, boolean fire) LingeringPotionSplashEvent
(@NotNull ThrownPotion potion, @Nullable Entity hitEntity, @Nullable Block hitBlock, @Nullable BlockFace hitFace, @NotNull AreaEffectCloud entity) PigZombieAngerEvent
(@NotNull PigZombie pigZombie, @Nullable Entity target, int newAnger) Deprecated.PlayerLeashEntityEvent
(@NotNull Entity what, @NotNull Entity leashHolder, @NotNull Player leasher, @NotNull EquipmentSlot hand) PotionSplashEvent
(@NotNull ThrownPotion potion, @Nullable Entity hitEntity, @Nullable Block hitBlock, @Nullable BlockFace hitFace, @NotNull Map<LivingEntity, Double> affectedEntities) ProjectileHitEvent
(@NotNull Projectile projectile, @Nullable Entity hitEntity) Deprecated.ProjectileHitEvent
(@NotNull Projectile projectile, @Nullable Entity hitEntity, @Nullable Block hitBlock) Deprecated.ProjectileHitEvent
(@NotNull Projectile projectile, @Nullable Entity hitEntity, @Nullable Block hitBlock, @Nullable BlockFace hitFace) SpawnerSpawnEvent
(@NotNull Entity spawnee, @Nullable CreatureSpawner spawner) ModifierConstructorDescriptionEntityTransformEvent
(@NotNull Entity original, @NotNull List<Entity> convertedList, @NotNull EntityTransformEvent.TransformReason transformReason) -
Uses of Entity in org.bukkit.event.hanging
Modifier and TypeMethodDescriptionHangingBreakByEntityEvent.getRemover()
Gets the entity that removed the hanging entity.ModifierConstructorDescriptionHangingBreakByEntityEvent
(@NotNull Hanging hanging, @NotNull Entity remover) HangingBreakByEntityEvent
(@NotNull Hanging hanging, @NotNull Entity remover, HangingBreakEvent.RemoveCause cause) -
Uses of Entity in org.bukkit.event.player
Modifier and TypeMethodDescriptionPlayerFishEvent.getCaught()
Gets the entity caught by the player.PlayerBucketEntityEvent.getEntity()
Gets theEntity
being put into the bucket.PlayerHideEntityEvent.getEntity()
Gets the entity which has been hidden from the player.PlayerShearEntityEvent.getEntity()
Gets the entity the player is shearingPlayerShowEntityEvent.getEntity()
Gets the entity which has been shown to the player.PlayerInteractEntityEvent.getRightClicked()
Gets the entity that was right-clicked by the player.PlayerExpChangeEvent.getSource()
Get the source that provided the experience.ModifierConstructorDescriptionPlayerBucketEntityEvent
(@NotNull Player player, @NotNull Entity entity, @NotNull ItemStack originalBucket, @NotNull ItemStack entityBucket, @NotNull EquipmentSlot hand) PlayerExpChangeEvent
(@NotNull Player player, @Nullable Entity sourceEntity, int expAmount) PlayerFishEvent
(@NotNull Player player, @Nullable Entity entity, @NotNull FishHook hookEntity, @NotNull PlayerFishEvent.State state) PlayerFishEvent
(@NotNull Player player, @Nullable Entity entity, @NotNull FishHook hookEntity, @Nullable EquipmentSlot hand, @NotNull PlayerFishEvent.State state) PlayerHideEntityEvent
(@NotNull Player who, @NotNull Entity entity) PlayerInteractAtEntityEvent
(@NotNull Player who, @NotNull Entity clickedEntity, @NotNull Vector position) PlayerInteractAtEntityEvent
(@NotNull Player who, @NotNull Entity clickedEntity, @NotNull Vector position, @NotNull EquipmentSlot hand) PlayerInteractEntityEvent
(@NotNull Player who, @NotNull Entity clickedEntity) PlayerInteractEntityEvent
(@NotNull Player who, @NotNull Entity clickedEntity, @NotNull EquipmentSlot hand) PlayerShearEntityEvent
(@NotNull Player who, @NotNull Entity what) Deprecated.PlayerShearEntityEvent
(@NotNull Player who, @NotNull Entity what, @NotNull ItemStack item, @NotNull EquipmentSlot hand, @NotNull List<ItemStack> drops) PlayerShowEntityEvent
(@NotNull Player who, @NotNull Entity entity) PlayerUnleashEntityEvent
(@NotNull Entity entity, @NotNull Player player) Deprecated.PlayerUnleashEntityEvent
(@NotNull Entity entity, @NotNull Player player, @NotNull EquipmentSlot hand) Deprecated.PlayerUnleashEntityEvent
(@NotNull Entity entity, @NotNull Player player, @NotNull EquipmentSlot hand, boolean dropLeash) -
Uses of Entity in org.bukkit.event.vehicle
Modifier and TypeMethodDescriptionVehicleDamageEvent.getAttacker()
Gets the Entity that is attacking the vehicleVehicleDestroyEvent.getAttacker()
Gets the Entity that has destroyed the vehicle, potentially nullVehicleEnterEvent.getEntered()
Gets the Entity that entered the vehicle.VehicleEntityCollisionEvent.getEntity()
ModifierConstructorDescriptionVehicleDamageEvent
(@NotNull Vehicle vehicle, @Nullable Entity attacker, double damage) VehicleDestroyEvent
(@NotNull Vehicle vehicle, @Nullable Entity attacker) VehicleEnterEvent
(@NotNull Vehicle vehicle, @NotNull Entity entered) VehicleEntityCollisionEvent
(@NotNull Vehicle vehicle, @NotNull Entity entity) -
Uses of Entity in org.bukkit.event.world
Modifier and TypeMethodDescriptionGenericGameEvent.getEntity()
Get the entity which triggered this event, if present.LootGenerateEvent.getEntity()
Get the entity used as context for loot generation (if applicable).PortalCreateEvent.getEntity()
Returns the Entity that triggered this portal creation (if available)Modifier and TypeMethodDescriptionEntitiesLoadEvent.getEntities()
Get the entities which are being loaded.EntitiesUnloadEvent.getEntities()
Get the entities which are being unloaded.ModifierConstructorDescriptionGenericGameEvent
(@NotNull GameEvent event, @NotNull Location location, @Nullable Entity entity, int radius, boolean isAsync) LootGenerateEvent
(@NotNull World world, @Nullable Entity entity, @Nullable InventoryHolder inventoryHolder, @NotNull LootTable lootTable, @NotNull LootContext lootContext, @NotNull List<ItemStack> items, boolean plugin) PortalCreateEvent
(@NotNull List<BlockState> blocks, @NotNull World world, @Nullable Entity entity, @NotNull PortalCreateEvent.CreateReason reason) -
Uses of Entity in org.bukkit.inventory
Modifier and TypeMethodDescriptionEntityEquipment.getHolder()
Get the entity this EntityEquipment belongs toModifier and TypeMethodDescriptionItemFactory.enchantItem
(@NotNull Entity entity, @NotNull ItemStack item, int level, boolean allowTreasures) net.md_5.bungee.api.chat.hover.content.Content
ItemFactory.hoverContentOf
(Entity entity) Deprecated.net.md_5.bungee.api.chat.hover.content.Content
ItemFactory.hoverContentOf
(Entity entity, @Nullable String customName) Deprecated.net.md_5.bungee.api.chat.hover.content.Content
ItemFactory.hoverContentOf
(Entity entity, net.md_5.bungee.api.chat.BaseComponent customName) Deprecated.net.md_5.bungee.api.chat.hover.content.Content
ItemFactory.hoverContentOf
(Entity entity, net.md_5.bungee.api.chat.BaseComponent[] customName) Deprecated. -
Uses of Entity in org.bukkit.loot
Modifier and TypeMethodDescriptionLootContext.Builder.lootedEntity
(@Nullable Entity lootedEntity) The entity that was killed. -
Uses of Entity in org.bukkit.scoreboard
Modifier and TypeMethodDescriptiondefault void
Team.addEntities
(Entity @NotNull ... entities) This puts a collection of entities onto this team for the scoreboard which results in one packet for the updates rather than a packet-per-entity.void
This puts the specified entity onto this team for the scoreboard.Scoreboard.getEntityTeam
(Entity entity) Gets an entity's Team on this ScoreboardObjective.getScoreFor
(Entity entity) Gets an entity's Score for an Objective on this Scoreboard.Scoreboard.getScoresFor
(Entity entity) Gets all scores for an entity on this Scoreboardboolean
Checks to see if the specified entity is a member of this team.default boolean
Team.removeEntities
(Entity @NotNull ... entities) Removes a collection of entities from this team which results in one packet for the updates rather than a packet-per-entity.boolean
Team.removeEntity
(Entity entity) Removes the entity from this team.void
Scoreboard.resetScoresFor
(Entity entity) Removes all scores for an entity on this ScoreboardModifier and TypeMethodDescriptionvoid
Team.addEntities
(Collection<Entity> entities) This puts a collection of entities onto this team for the scoreboard which results in one packet for the updates rather than a packet-per-entity.boolean
Team.removeEntities
(Collection<Entity> entities) Removes a collection of entities from this team which results in one packet for the updates rather than a packet-per-entity. -
Uses of Entity in org.bukkit.structure
Modifier and TypeMethodDescriptionStructure.getEntities()
Gets a list of entities that have been included in the Structure. -
Uses of Entity in org.bukkit.util
Modifier and TypeMethodDescriptionboolean
EntityTransformer.transform
(@NotNull LimitedRegion region, int x, int y, int z, @NotNull Entity entity, boolean allowedToSpawn) Transforms a entity in a structure.
ThrownPotion
and set the potion via the methods there.