Uses of Interface
org.bukkit.entity.Entity
Packages that use 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.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.
Spigot-specific entity events.
-
Uses of Entity in com.destroystokyo.paper.entity
Subinterfaces of Entity in com.destroystokyo.paper.entityMethods in com.destroystokyo.paper.entity that return EntityConstructors in com.destroystokyo.paper.entity with parameters of type Entity -
Uses of Entity in com.destroystokyo.paper.event.block
Methods in com.destroystokyo.paper.event.block that return EntityConstructors in com.destroystokyo.paper.event.block with parameters of type EntityModifierConstructorDescriptionTNTPrimeEvent(@NotNull Block theBlock, @NotNull TNTPrimeEvent.PrimeReason reason, @Nullable Entity primerEntity) -
Uses of Entity in com.destroystokyo.paper.event.entity
Methods in com.destroystokyo.paper.event.entity that return EntityModifier and TypeMethodDescriptionProjectileCollideEvent.getCollidedWith()Get the entity the projectile collided withEntityPathfindEvent.getEntity()The Entity that is pathfinding.EntityKnockbackByEntityEvent.getHitBy()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.Constructors in com.destroystokyo.paper.event.entity with parameters of type EntityModifierConstructorDescriptionEntityAddToWorldEvent(@NotNull Entity entity) EntityKnockbackByEntityEvent(@NotNull LivingEntity entity, @NotNull Entity hitBy, float knockbackStrength, @NotNull Vector acceleration) EntityRemoveFromWorldEvent(@NotNull Entity entity) EntityTeleportEndGatewayEvent(@NotNull Entity what, @NotNull Location from, @NotNull Location to, @NotNull EndGateway gateway) EntityTransformedEvent(Entity entity, Entity transformed, EntityTransformedEvent.TransformedReason reason) Deprecated.EntityZapEvent(@NotNull Entity entity, @NotNull LightningStrike bolt, @NotNull Entity replacementEntity) PhantomPreSpawnEvent(@NotNull Location location, @NotNull Entity entity, CreatureSpawnEvent.SpawnReason reason) ProjectileCollideEvent(@NotNull Projectile what, @NotNull Entity collidedWith) -
Uses of Entity in com.destroystokyo.paper.event.player
Methods in com.destroystokyo.paper.event.player that return EntityModifier 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 spectatingConstructors in com.destroystokyo.paper.event.player with parameters of type EntityModifierConstructorDescriptionPlayerAttackEntityCooldownResetEvent(@NotNull Player who, @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
Methods in com.destroystokyo.paper.loottable that return Entity -
Uses of Entity in io.papermc.paper.entity
Subinterfaces of Entity in io.papermc.paper.entityModifier and TypeInterfaceDescriptioninterfaceRepresents an entity that can be bucketed.interfaceEntities that can have their collars colored. -
Uses of Entity in io.papermc.paper.event.block
Methods in io.papermc.paper.event.block that return EntityConstructors in io.papermc.paper.event.block with parameters of type EntityModifierConstructorDescriptionBellRevealRaiderEvent(@NotNull Block theBlock, @NotNull Entity raider) BellRingEvent(@NotNull Block block, @Nullable Entity entity) -
Uses of Entity in io.papermc.paper.event.entity
Methods in io.papermc.paper.event.entity that return EntityModifier and TypeMethodDescriptionWardenAngerChangeEvent.getTarget()Gets the entity (if any) which triggered this anger update.Constructors in io.papermc.paper.event.entity with parameters of type EntityModifierConstructorDescriptionElderGuardianAppearanceEvent(@NotNull Entity what, @NotNull Player affectedPlayer) EntityDamageItemEvent(@NotNull Entity entity, @NotNull ItemStack item, int damage) EntityInsideBlockEvent(@NotNull Entity entity, @NotNull Block block) EntityPortalReadyEvent(@NotNull Entity entity, @Nullable World targetWorld, @NotNull PortalType portalType) WardenAngerChangeEvent(@NotNull Warden warden, @Nullable Entity target, int oldAnger, int newAnger) -
Uses of Entity in org.bukkit
Methods in org.bukkit with type parameters of type EntityModifier and TypeMethodDescription<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<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<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<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<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<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<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<T> function) Creates a new entity at the givenLocationwith 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<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<T> function, CreatureSpawnEvent.SpawnReason reason) default <T extends Entity>
TRegionAccessor.spawn(@NotNull Location location, @NotNull Class<T> clazz, CreatureSpawnEvent.SpawnReason reason) default <T extends Entity>
TRegionAccessor.spawn(@NotNull Location location, @NotNull Class<T> clazz, CreatureSpawnEvent.SpawnReason reason, @Nullable Consumer<T> function) Methods in org.bukkit that return EntityModifier and TypeMethodDescriptiondefault EntityUnsafeValues.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 givenLocationRegionAccessor.spawnEntity(@NotNull Location loc, @NotNull EntityType type, boolean randomizeData) Creates a new entity at the givenLocation.RegionAccessor.spawnEntity(@NotNull Location loc, EntityType type, CreatureSpawnEvent.SpawnReason reason) RegionAccessor.spawnEntity(@NotNull Location loc, EntityType type, CreatureSpawnEvent.SpawnReason reason, @Nullable Consumer<Entity> function) Methods in org.bukkit that return types with arguments of type EntityModifier 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<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<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.Methods in org.bukkit with parameters of type EntityModifier and TypeMethodDescriptionbooleanLocation.createExplosion(@NotNull 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.booleanLocation.createExplosion(@Nullable Entity source, float power) Creates explosion at this location with given power, with the specified entity as the source.booleanLocation.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.booleanWorld.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.default booleanWorld.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 booleanWorld.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 booleanWorld.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.booleanWorld.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 booleanWorld.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 booleanWorld.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.booleanWorld.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.voidPlay a Sound at the location of the provided entity in the World.voidWorld.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.voidWorld.sendGameEvent(@Nullable Entity sourceEntity, @NotNull GameEvent gameEvent, @NotNull Vector position) Posts a specified game event at a locationbyte[]UnsafeValues.serializeEntity(Entity entity) Deprecated.Method parameters in org.bukkit with type arguments of type EntityModifier and TypeMethodDescriptionWorld.getNearbyEntities(@NotNull Location location, double x, double y, double z, @Nullable Predicate<Entity> filter) Returns a list of entities within a bounding box centered around a Location.World.getNearbyEntities(@NotNull BoundingBox boundingBox, @Nullable Predicate<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<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<T> predicate) Gets all nearby entities of the specified type, within the specified radius (bounding box)World.rayTrace(@NotNull Location start, @NotNull Vector direction, double maxDistance, @NotNull FluidCollisionMode fluidCollisionMode, boolean ignorePassableBlocks, double raySize, @Nullable Predicate<Entity> filter) Performs a ray trace that checks for both block and entity collisions.World.rayTraceEntities(@NotNull Location start, @NotNull Vector direction, double maxDistance, double raySize, @Nullable Predicate<Entity> filter) Performs a ray trace that checks for entity collisions.World.rayTraceEntities(@NotNull Location start, @NotNull Vector direction, double maxDistance, @Nullable Predicate<Entity> filter) Performs a ray trace that checks for entity collisions.RegionAccessor.spawnEntity(@NotNull Location loc, EntityType type, CreatureSpawnEvent.SpawnReason reason, @Nullable Consumer<Entity> function) Constructors in org.bukkit with parameters of type Entity -
Uses of Entity in org.bukkit.block
Classes in org.bukkit.block with type parameters of type EntityModifier and TypeInterfaceDescriptioninterfaceEntityBlockStorage<T extends Entity>Represents a captured state of a block which stores entities.Methods in org.bukkit.block with parameters of type Entity -
Uses of Entity in org.bukkit.entity
Subinterfaces of Entity in org.bukkit.entityModifier and TypeInterfaceDescriptioninterfaceRepresents an arrow.interfaceRepresents a Horse-like creature.interfaceThis interface defines or represents the abstract concept of skeleton-like entities on the server.interfaceRepresents a villager NPCinterfaceRepresents an entity that can age.interfaceAn Allay.interfaceRepresents an ambient mobinterfaceRepresents an Animal.interfaceRepresents an area effect cloud which will imbue a potion effect onto entities which enter it.interfaceinterfaceinterfaceAn Axolotl.interfaceRepresents a BatinterfaceRepresents a Bee.interfaceRepresents a Blaze monsterinterfaceRepresents a boat entity.interfaceRepresents the Boss Entity.interfaceRepresents an entity that can age and breed.interfaceMeow.interfaceRepresents a Spider.interfaceABoatwith a chest.interfaceRepresents Horse-like creatures which can carry an inventory.interfaceRepresents a Chicken.interfaceRepresents a cod fish.interfaceRepresents a single part of aComplexLivingEntityinterfaceRepresents a complex living entity - one that is made up of various smaller partsinterfaceRepresents a Cow.interfaceRepresents a Creature.interfaceRepresents a CreeperinterfaceRepresents anEntitythat has health and can take damage.interfaceinterfaceRepresents a Donkey - variant ofChestedHorse.interfaceinterfaceDrowned zombie.interfaceRepresents a thrown egg.interfaceRepresents an ElderGuardian - variant ofGuardian.interfaceA crystal that heals nearby EnderDragonsinterfaceRepresents an Ender DragoninterfaceRepresents an ender dragon partinterfaceRepresents an Enderman.interfaceinterfaceRepresents a thrown Ender Pearl entityinterfaceRepresents an EnderSignal, which is created upon throwing an ender eye.interfaceRepresents an Evoker "Illager".interfaceRepresents Evoker Fangs.interfaceRepresents an Experience Orb.interfaceA representation of an explosive entityinterfaceRepresents a falling blockinterfaceRepresents a Fireball.interfaceinterfaceRepresents a fish entity.interfaceRepresents a fishing hook.interfaceRepresents a Flying Entity.interfaceWhat does the fox say?interfaceA Frog.interfaceRepresents a Ghast.interfaceRepresents a Giant.interfaceA Glow Item Frame.interfaceA Glow Squid.interfaceA Goat.interfaceA mechanical creature that may harm enemies.interfaceinterfaceRepresents a Hanging entityinterfaceRepresents a Hoglin.interfaceRepresents a Horse.interfaceRepresents a human entity, such as an NPC or a playerinterfaceRepresents a Husk - variant ofZombie.interfaceRepresents a type of "Illager".interfaceRepresents an Illusioner "Illager".interfaceAn iron Golem that protects Villages.interfaceRepresents a dropped item.interfaceRepresents an Item FrameinterfaceRepresents a largeFireballinterfaceRepresents a Leash Hitch on a fenceinterfaceRepresents an instance of a lightning strike.interfaceDeprecated, for removal: This API element is subject to removal in a future version.should not be used for anything, useThrownPotionand set the potion via the methods there.interfaceRepresents a living entity, such as a monster or playerinterfaceRepresents a Llama.interfaceRepresents Llama spit.interfaceRepresents a MagmaCube.interfaceA Marker entity, exists only on the server.interfaceRepresents a minecart entity.interfaceRepresents a Mob.interfaceRepresents a Monster.interfaceRepresents a Mule - variant ofChestedHorse.interfaceRepresents a mushroomCowinterfaceRepresents a non-player characterinterfaceA wild tameable catinterfaceRepresents a Painting.interfacePanda entity.interfaceRepresents a Parrot.interfaceRepresents a phantom.interfaceRepresents a Pig.interfaceRepresents a Piglin.interfacePiglin / Piglin Brute.interfaceRepresents a Piglin Brute.interfaceRepresents a Pig Zombie.interfaceIllager entity.interfaceRepresents a player, connected or notinterfaceRepresents a polar bear.interfaceRepresents a shootable entity.interfaceRepresents a puffer fish.interfaceinterfaceinterfaceIllager beast.interfaceRepresents a salmon fish.interfaceRepresents a Sheep.interfaceinterfaceinterfaceRepresents a Silverfish.interfaceRepresents a sized fireball.interfaceRepresents a Skeleton.interfaceRepresents a SkeletonHorse - variant ofAbstractHorse.interfaceRepresents a Slime.interfaceRepresents a smallFireballinterfaceRepresents a snowball.interfaceRepresents a snowman entityinterfaceRepresents a spectral arrow.interfaceRepresents a spell casting "Illager".interfaceRepresents a Spider.interfaceDeprecated, for removal: This API element is subject to removal in a future version.should not be used for anything, useThrownPotionand set the potion via the methods there.interfaceRepresents a Squid.interfaceRepresents an entity which may be saddled, ridden and steered using an item.interfaceRepresents a Stray - variant ofAbstractSkeleton.interfaceRepresents a Strider.interfaceA babyFrog.interfaceinterfaceinterfaceRepresents a thrown Experience bottle.interfaceRepresents a thrown potion bottleinterfaceDeprecated.tipped status depends only on base potion type not being UNCRAFTABLE and effects being empty.interfaceRepresents a Primed TNT.interfaceRepresents a trader Llama.interfaceRepresents a thrown trident.interfaceTropical fish.interfaceRepresents a turtle.interfaceRepresents a vehicle entity.interfaceRepresents a Vex.interfaceRepresents a villager NPCinterfaceRepresents a Vindicator.interfaceRepresents a wandering trader NPCinterfaceA Warden.interfaceRepresents a Water MobinterfaceRepresents a WitchinterfaceRepresents a Wither bossinterfaceRepresents a WitherSkeleton - variant ofAbstractSkeleton.interfaceRepresents a wither skullFireball.interfaceRepresents a WolfinterfaceRepresents a Zoglin.interfaceRepresents a Zombie.interfaceRepresents a ZombieHorse - variant ofAbstractHorse.interfaceMethods in org.bukkit.entity that return EntityModifier and TypeMethodDescriptionLightningStrike.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 player 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.Methods in org.bukkit.entity that return types with arguments of type EntityModifier 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.Methods in org.bukkit.entity with parameters of type EntityModifier and TypeMethodDescriptionbooleanEntity.addPassenger(@NotNull Entity passenger) Add a passenger to the vehicle.voidMakes this entity attack the given entity with a melee attack.booleanChecks to see if an entity has been visually hidden from this player.voidDeals the given amount of damage to this entity, from a specified entity.intGets the anger level of this warden.booleanLivingEntity.hasLineOfSight(@NotNull Entity other) Checks whether the living entity has block line of sight to another.voidPlayer.hideEntity(@NotNull Plugin plugin, @NotNull Entity entity) Visually hides an entity from this player.voidWarden.increaseAnger(@NotNull Entity entity, int increase) Increases the anger level of this warden.voidInstruct this Mob to look at a specific EntityvoidInstruct this Mob to look at a specific EntityvoidPlayer.lookAt(Entity entity, LookAnchor playerAnchor, LookAnchor entityAnchor) Causes the player to look towards the given entity.voidPlay a sound for a player at the location of the entity.voidPlayer.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.booleanEntity.removePassenger(@NotNull Entity passenger) Remove a passenger from the vehicle.voidSets the anger level of this warden.voidFishHook.setHookedEntity(@Nullable Entity entity) Set the entity hooked by this fish hook.booleanLivingEntity.setLeashHolder(@Nullable Entity holder) Sets the leash on this entity to be held by the supplied entity.booleanEntity.setPassenger(@NotNull Entity passenger) Deprecated.entities may have multiple passengers, useaddPassenger(org.bukkit.entity.Entity)voidHumanEntity.setShoulderEntityLeft(@Nullable Entity entity) Deprecated.There are currently no well defined semantics regarding serialized entities in Bukkit.voidHumanEntity.setShoulderEntityRight(@Nullable Entity entity) Deprecated.There are currently no well defined semantics regarding serialized entities in Bukkit.voidSets the source of this primed TNT.voidPlayer.setSpectatorTarget(@Nullable Entity entity) Sets the entity which is followed by the camera when inGameMode.SPECTATOR.voidSets the target of this bulletvoidFrog.setTongueTarget(@Nullable Entity target) Sets the tongue target of this frog.voidPlayer.showEntity(@NotNull Plugin plugin, @NotNull Entity entity) Allows this player to see an entity that was previously hidden.booleanTeleports this entity to the target Entity.booleanEntity.teleport(@NotNull Entity destination, @NotNull PlayerTeleportEvent.TeleportCause cause) Teleports this entity to the target Entity. -
Uses of Entity in org.bukkit.entity.minecart
Subinterfaces of Entity in org.bukkit.entity.minecartModifier and TypeInterfaceDescriptioninterfaceinterfaceRepresents a Minecart with TNT inside it that can explode when triggered.interfaceRepresents a Minecart with a Hopper inside itinterfaceRepresents a powered minecart.interfaceRepresents a minecart that can have certainentitiesas passengers.interfaceRepresents a Minecart with anentity spawnerinside it.interfaceRepresents a minecart with a chest. -
Uses of Entity in org.bukkit.event.block
Methods in org.bukkit.event.block that return EntityModifier and TypeMethodDescriptionBlockReceiveGameEvent.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 blockConstructors in org.bukkit.event.block with parameters of type EntityModifierConstructorDescriptionBlockIgniteEvent(@NotNull Block theBlock, @NotNull BlockIgniteEvent.IgniteCause cause, @Nullable Entity ignitingEntity) BlockIgniteEvent(@NotNull Block theBlock, @NotNull BlockIgniteEvent.IgniteCause cause, @Nullable Entity ignitingEntity, @Nullable Block ignitingBlock) CauldronLevelChangeEvent(@NotNull Block block, @Nullable Entity entity, @NotNull CauldronLevelChangeEvent.ChangeReason reason, @NotNull BlockState newBlock) EntityBlockFormEvent(@NotNull Entity entity, @NotNull Block block, @NotNull BlockState blockstate) -
Uses of Entity in org.bukkit.event.entity
Fields in org.bukkit.event.entity declared as EntityMethods in org.bukkit.event.entity that return EntityModifier and TypeMethodDescriptionEntityCombustByEntityEvent.getCombuster()Get the entity that caused the combustion event.EntityDamageByEntityEvent.getDamager()Returns the entity that damaged the defender.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.EntityShootBowEvent.getProjectile()Gets the projectile which will be launched by this eventEntityTargetEvent.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.Methods in org.bukkit.event.entity that return types with arguments of type EntityModifier and TypeMethodDescriptionEntityTransformEvent.getTransformedEntities()Gets the entities that the original entity was transformed to.Methods in org.bukkit.event.entity with parameters of type EntityModifier and TypeMethodDescriptionvoidEntityShootBowEvent.setProjectile(@NotNull Entity projectile) Replaces the projectile which will be launchedvoidSet the entity that you want the mob to target instead.voidSet the Entity that you want the mob to target.Constructors in org.bukkit.event.entity with parameters of type EntityModifierConstructorDescriptionEntityAirChangeEvent(@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, @NotNull Entity damagee, @NotNull EntityDamageEvent.DamageCause cause, double damage) 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) EntityDamageByEntityEvent(@NotNull Entity damager, @NotNull Entity damagee, @NotNull EntityDamageEvent.DamageCause cause, double damage) Deprecated.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.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, boolean critical) EntityDamageEvent(@NotNull Entity damagee, @NotNull EntityDamageEvent.DamageCause cause, double damage) EntityDamageEvent(@NotNull Entity damagee, @NotNull EntityDamageEvent.DamageCause cause, @NotNull Map<EntityDamageEvent.DamageModifier, Double> modifiers, @NotNull Map<EntityDamageEvent.DamageModifier, ? extends Function<? super Double, Double>> modifierFunctions) 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) EntityPlaceEvent(@NotNull Entity entity, @Nullable Player player, @NotNull Block block, @NotNull BlockFace blockFace) EntityPortalEnterEvent(@NotNull Entity entity, @NotNull Location location) EntityPortalEvent(@NotNull Entity entity, @NotNull Location from, @Nullable Location to, int searchRadius) 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) 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, @Nullable 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) ExplosionPrimeEvent(@NotNull Entity what, float radius, boolean fire) PigZombieAngerEvent(@NotNull PigZombie pigZombie, @Nullable Entity target, int newAnger) ProjectileHitEvent(@NotNull Projectile projectile, @Nullable Entity hitEntity) ProjectileHitEvent(@NotNull Projectile projectile, @Nullable Entity hitEntity, @Nullable Block hitBlock) ProjectileHitEvent(@NotNull Projectile projectile, @Nullable Entity hitEntity, @Nullable Block hitBlock, @Nullable BlockFace hitFace) SpawnerSpawnEvent(@NotNull Entity spawnee, @NotNull CreatureSpawner spawner) Constructor parameters in org.bukkit.event.entity with type arguments of type EntityModifierConstructorDescriptionEntityTransformEvent(@NotNull Entity original, @NotNull List<Entity> convertedList, @NotNull EntityTransformEvent.TransformReason transformReason) -
Uses of Entity in org.bukkit.event.hanging
Methods in org.bukkit.event.hanging that return EntityModifier and TypeMethodDescriptionHangingBreakByEntityEvent.getRemover()Gets the entity that removed the hanging entity.Constructors in org.bukkit.event.hanging with parameters of type EntityModifierConstructorDescriptionHangingBreakByEntityEvent(@NotNull Hanging hanging, @Nullable Entity remover) HangingBreakByEntityEvent(@NotNull Hanging hanging, @Nullable Entity remover, HangingBreakEvent.RemoveCause cause) -
Uses of Entity in org.bukkit.event.player
Fields in org.bukkit.event.player declared as EntityMethods in org.bukkit.event.player that return EntityModifier and TypeMethodDescriptionPlayerFishEvent.getCaught()Gets the entity caught by the player.PlayerBucketEntityEvent.getEntity()Gets theEntitybeing 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.Constructors in org.bukkit.event.player with parameters of type EntityModifierConstructorDescriptionPlayerBucketEntityEvent(@NotNull Player player, @NotNull Entity entity, @NotNull ItemStack originalBucket, @NotNull ItemStack entityBucket) PlayerExpChangeEvent(@NotNull Player player, @Nullable Entity sourceEntity, int expAmount) PlayerFishEvent(@NotNull Player player, @Nullable Entity entity, @NotNull FishHook hookEntity, @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) PlayerShowEntityEvent(@NotNull Player who, @NotNull Entity entity) PlayerUnleashEntityEvent(@NotNull Entity entity, @NotNull Player player) Deprecated.PlayerUnleashEntityEvent(@NotNull Entity entity, @NotNull Player player, boolean dropLeash) -
Uses of Entity in org.bukkit.event.vehicle
Methods in org.bukkit.event.vehicle that return EntityModifier 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()Constructors in org.bukkit.event.vehicle with parameters of type EntityModifierConstructorDescriptionVehicleDamageEvent(@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
Methods in org.bukkit.event.world that return EntityModifier 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)Methods in org.bukkit.event.world that return types with arguments of type EntityModifier and TypeMethodDescriptionEntitiesLoadEvent.getEntities()Get the entities which are being loaded.EntitiesUnloadEvent.getEntities()Get the entities which are being unloaded.Constructors in org.bukkit.event.world with parameters of type EntityModifierConstructorDescriptionGenericGameEvent(@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) Constructor parameters in org.bukkit.event.world with type arguments of type Entity -
Uses of Entity in org.bukkit.inventory
Methods in org.bukkit.inventory that return EntityModifier and TypeMethodDescriptionEntityEquipment.getHolder()Get the entity this EntityEquipment belongs toMethods in org.bukkit.inventory with parameters of type EntityModifier and TypeMethodDescriptionnet.md_5.bungee.api.chat.hover.content.ContentItemFactory.hoverContentOf(Entity entity) Deprecated.net.md_5.bungee.api.chat.hover.content.ContentItemFactory.hoverContentOf(Entity entity, @NotNull net.md_5.bungee.api.chat.BaseComponent[] customName) Deprecated.net.md_5.bungee.api.chat.hover.content.ContentItemFactory.hoverContentOf(Entity entity, @Nullable String customName) Deprecated.net.md_5.bungee.api.chat.hover.content.ContentItemFactory.hoverContentOf(Entity entity, net.md_5.bungee.api.chat.BaseComponent customName) Deprecated. -
Uses of Entity in org.bukkit.loot
Methods in org.bukkit.loot that return EntityMethods in org.bukkit.loot with parameters of type EntityModifier and TypeMethodDescriptionLootContext.Builder.lootedEntity(@Nullable Entity lootedEntity) The entity that was killed. -
Uses of Entity in org.bukkit.scoreboard
Methods in org.bukkit.scoreboard with parameters of type EntityModifier and TypeMethodDescriptiondefault voidTeam.addEntities(@NotNull 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.voidThis puts the specified entity onto this team for the scoreboard.Scoreboard.getEntityTeam(Entity entity) Gets a 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 a entity on this ScoreboardbooleanChecks to see if the specified entity is a member of this team.default booleanTeam.removeEntities(@NotNull 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.booleanTeam.removeEntity(Entity entity) Removes the entity from this team.voidScoreboard.resetScoresFor(Entity entity) Removes all scores for a entity on this ScoreboardMethod parameters in org.bukkit.scoreboard with type arguments of type EntityModifier and TypeMethodDescriptionvoidTeam.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.booleanTeam.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
Methods in org.bukkit.structure that return types with arguments of type EntityModifier and TypeMethodDescriptionStructure.getEntities()Gets a list of entities that have been included in the Structure. -
Uses of Entity in org.bukkit.util
Methods in org.bukkit.util that return EntityConstructors in org.bukkit.util with parameters of type Entity -
Uses of Entity in org.spigotmc.event.entity
Methods in org.spigotmc.event.entity that return EntityModifier and TypeMethodDescriptionEntityDismountEvent.getDismounted()EntityMountEvent.getMount()Constructors in org.spigotmc.event.entity with parameters of type EntityModifierConstructorDescriptionEntityDismountEvent(@NotNull Entity what, @NotNull Entity dismounted) EntityDismountEvent(@NotNull Entity what, @NotNull Entity dismounted, boolean isCancellable) EntityMountEvent(@NotNull Entity what, @NotNull Entity mount)
EntityTransformEvent.getTransformedEntity()