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.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.
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 org.bukkit
Methods in org.bukkit with type parameters of type EntityModifier and TypeMethodDescription<T extends Entity>
TRegionAccessor.addEntity(T entity) Spawns a previously created entity in the world.<T extends Entity>
TRegionAccessor.createEntity(Location location, Class<T> clazz) Creates an entity of a specific class at the givenLocationbut does not spawn it in the world.<T extends Entity>
Collection<T>RegionAccessor.getEntitiesByClass(Class<T> cls) Get a collection of all entities in this RegionAccessor matching the given class/interface<T extends Entity>
Collection<T>World.getEntitiesByClass(Class<T> cls) Get a collection of all entities in this World matching the given class/interface<T extends Entity>
Collection<T>World.getEntitiesByClass(Class<T>... classes) Deprecated.<T extends Entity>
TSpawn an entity of a specific class at the givenLocation<T extends Entity>
TRegionAccessor.spawn(Location location, Class<T> clazz, boolean randomizeData, Consumer<? super T> function) Creates a new entity at the givenLocationwith the supplied function run before the entity is added to the world.<T extends Entity>
TSpawn an entity of a specific class at the givenLocation, with the supplied function run before the entity is added to the world.Methods in org.bukkit that return EntityModifier and TypeMethodDescriptionEntity[]Chunk.getEntities()Get a list of all entities in the chunk.static EntityGets an entity on the server by its UUIDGets an entity on the server by its UUIDVibration.Destination.EntityDestination.getEntity()RegionAccessor.spawnEntity(Location location, EntityType type) Creates a entity at the givenLocationRegionAccessor.spawnEntity(Location loc, EntityType type, boolean randomizeData) Creates a new entity at the givenLocation.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(Class<?>... classes) Get a collection of all entities in this RegionAccessor matching any of the given classes/interfacesWorld.getEntitiesByClasses(Class<?>... classes) Get a collection of all entities in this World matching any of the given classes/interfacesWorld.getNearbyEntities(Location location, double x, double y, double z) Returns a list of entities within a bounding box centered around a Location.World.getNearbyEntities(Location location, double x, double y, double z, Predicate<? super Entity> filter) Returns a list of entities within a bounding box centered around a Location.World.getNearbyEntities(BoundingBox boundingBox) Returns a list of entities within the given bounding box.World.getNearbyEntities(BoundingBox boundingBox, Predicate<? super Entity> filter) Returns a list of entities within the given bounding box.Bukkit.selectEntities(CommandSender sender, String selector) Selects entities using the given Vanilla selector.Server.selectEntities(CommandSender sender, String selector) Selects entities using the given Vanilla selector.Methods in org.bukkit with parameters of type EntityModifier and TypeMethodDescriptionbooleanWorld.createExplosion(double x, double y, double z, float power, boolean setFire, boolean breakBlocks, Entity source) Creates explosion at given coordinates with given power and optionally setting blocks on fire or breaking blocks.booleanWorld.createExplosion(Location loc, float power, boolean setFire, boolean breakBlocks, Entity source) Creates explosion at given coordinates with given power and optionally setting blocks on fire or breaking blocks.booleanEntityEffect.isApplicableTo(Entity entity) Checks if this effect is applicable to the given entity.booleanChecks if a given entity is frozen.voidPlay a Sound at the location of the provided entity in the World.voidWorld.playSound(Entity entity, String sound, SoundCategory category, float volume, float pitch) Play a Sound at the location of the provided entity in the World.voidWorld.playSound(Entity entity, String sound, SoundCategory category, float volume, float pitch, long seed) Play a Sound at the location of the provided entity in the World.voidPlay a Sound at the location of the provided entity in the World.voidWorld.playSound(Entity entity, Sound sound, SoundCategory category, float volume, float pitch) Play a Sound at the location of the provided entity in the World.voidWorld.playSound(Entity entity, Sound sound, SoundCategory category, float volume, float pitch, long seed) Play a Sound at the location of the provided entity in the World.Method parameters in org.bukkit with type arguments of type EntityModifier and TypeMethodDescriptionWorld.getNearbyEntities(Location location, double x, double y, double z, Predicate<? super Entity> filter) Returns a list of entities within a bounding box centered around a Location.World.getNearbyEntities(BoundingBox boundingBox, Predicate<? super Entity> filter) Returns a list of entities within the given bounding box.booleanEntityEffect.isApplicableTo(Class<? extends Entity> clazz) Checks if this effect is applicable to the given entity class.World.rayTrace(Location start, Vector direction, double maxDistance, FluidCollisionMode fluidCollisionMode, boolean ignorePassableBlocks, double raySize, Predicate<? super Entity> filter) Performs a ray trace that checks for both block and entity collisions.World.rayTraceEntities(Location start, Vector direction, double maxDistance, double raySize, Predicate<? super Entity> filter) Performs a ray trace that checks for entity collisions.World.rayTraceEntities(Location start, Vector direction, double maxDistance, Predicate<? super Entity> filter) Performs a ray trace that checks for entity collisions.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 EntityModifier and TypeMethodDescriptionReturns a list of items which would drop by the entity destroying this block with a specific toolbooleanRing this bell in the direction that the bell is facing.booleanRing this bell. -
Uses of Entity in org.bukkit.damage
Methods in org.bukkit.damage that return EntityModifier and TypeMethodDescriptionDamageSource.getCausingEntity()Get theEntitythat caused the damage to occur.DamageSource.getDirectEntity()Get theEntitythat directly caused the damage.Methods in org.bukkit.damage with parameters of type EntityModifier and TypeMethodDescriptionDamageSource.Builder.withCausingEntity(Entity entity) Set theEntitythat caused the damage.DamageSource.Builder.withDirectEntity(Entity entity) Set theEntitythat directly inflicted the damage. -
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 block display entity.interfaceRepresents a boat entity.interfaceRepresents the Boss Entity.interfaceRepresents an entity that can age and breed.interfaceRepresents a Breeze.interfaceRepresents a Camel.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.interfaceRepresents a display entity which is designed to only have a visual function.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 EnemyinterfaceRepresents 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".interfaceRepresents an entity designed to only record interactions.interfaceAn iron Golem that protects Villages.interfaceRepresents a dropped item.interfaceRepresents an item display entity.interfaceRepresents an Item FrameinterfaceRepresents a largeFireballinterfaceRepresents a Leash Hitch on a fenceinterfaceRepresents an instance of a lightning strike.interfaceDeprecated.lingering status depends on only on the potion item.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 Sniffer.interfaceRepresents a snowball.interfaceRepresents a snowman entityinterfaceRepresents a spectral arrow.interfaceRepresents a spell casting "Illager".interfaceRepresents a Spider.interfaceDeprecated.splash status depends on only on the potion item.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.interfaceinterfaceRepresents a text display entity.interfaceinterfaceRepresents 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 Wind Charge.interfaceRepresents 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 TypeMethodDescriptionEntity.copy()Creates a copy of this entity and all its data.Creates a copy of this entity and all its data.EntitySnapshot.createEntity(Location to) Creates an entity using this template and spawns it at the provided location.EntitySnapshot.createEntity(World world) Creates an entity using this template.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.Frog.getTongueTarget()Gets the tongue target of this frog.Entity.getVehicle()Get the vehicle that this entity is inside.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(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.voidWarden.clearAnger(Entity entity) Clears the anger level of this warden.voidDeals the given amount of damage to this entity from a specifiedEntity.intGets the anger level of this warden.booleanLivingEntity.hasLineOfSight(Entity other) Checks whether the living entity has block line of sight to another.voidPlayer.hideEntity(Plugin plugin, Entity entity) Visually hides an entity from this player.voidWarden.increaseAnger(Entity entity, int increase) Increases the anger level of this warden.voidPlay a sound for a player at the location of the entity.voidPlayer.playSound(Entity entity, String sound, SoundCategory category, float volume, float pitch) Play a sound for a player at the location of the entity.voidPlayer.playSound(Entity entity, String sound, SoundCategory category, float volume, float pitch, long seed) Play a sound for a player at the location of the entity.voidPlay a sound for a player at the location of the entity.voidPlayer.playSound(Entity entity, Sound sound, SoundCategory category, float volume, float pitch) Play a sound for a player at the location of the entity.voidPlayer.playSound(Entity entity, Sound sound, SoundCategory category, float volume, float pitch, long seed) Play a sound for a player at the location of the entity.booleanEntity.removePassenger(Entity passenger) Remove a passenger from the vehicle.voidPlayer.sendBlockDamage(Location loc, float progress, Entity source) Send block damage.voidSets the anger level of this warden.voidFishHook.setHookedEntity(Entity entity) Set the entity hooked by this fish hook.booleanLivingEntity.setLeashHolder(Entity holder) Sets the leash on this entity to be held by the supplied entity.booleanEntity.setPassenger(Entity passenger) Deprecated.entities may have multiple passengers, useaddPassenger(org.bukkit.entity.Entity)voidHumanEntity.setShoulderEntityLeft(Entity entity) Deprecated.There are currently no well defined semantics regarding serialized entities in Bukkit.voidHumanEntity.setShoulderEntityRight(Entity entity) Deprecated.There are currently no well defined semantics regarding serialized entities in Bukkit.voidSets the source of this primed TNT.voidPlayer.setSpectatorTarget(Entity entity) Sets the entity which is followed by the camera when inGameMode.SPECTATOR.voidSets the target of this bulletvoidFrog.setTongueTarget(Entity target) Sets the tongue target of this frog.voidPlayer.showEntity(Plugin plugin, Entity entity) Allows this player to see an entity that was previously hidden.booleanTeleports this entity to the target Entity.booleanEntity.teleport(Entity destination, PlayerTeleportEvent.TeleportCause cause) Teleports this entity to the target Entity.booleanEnderman.teleportTowards(Entity entity) Randomly teleports the Enderman towards the givenentity. -
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 TypeMethodDescriptionBellRingEvent.getEntity()Get theEntitythat 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.Constructors in org.bukkit.event.block with parameters of type EntityModifierConstructorDescriptionBellRingEvent(Block theBlock, BlockFace direction, Entity entity) BlockIgniteEvent(Block theBlock, BlockIgniteEvent.IgniteCause cause, Entity ignitingEntity) BlockIgniteEvent(Block theBlock, BlockIgniteEvent.IgniteCause cause, Entity ignitingEntity, Block ignitingBlock) BlockReceiveGameEvent(GameEvent event, Block block, Entity entity) BlockShearEntityEvent(Block dispenser, Entity sheared, ItemStack tool) CauldronLevelChangeEvent(Block block, Entity entity, CauldronLevelChangeEvent.ChangeReason reason, BlockState newBlock) EntityBlockFormEvent(Entity entity, Block block, BlockState blockstate) TNTPrimeEvent(Block block, TNTPrimeEvent.PrimeCause igniteCause, Entity primingEntity, Block primingBlock) -
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.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()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.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(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(Entity what, int amount) EntityChangeBlockEvent(Entity what, Block block, BlockData to) EntityCombustByBlockEvent(Block combuster, Entity combustee, int duration) EntityCombustByEntityEvent(Entity combuster, Entity combustee, int duration) EntityCombustEvent(Entity combustee, int duration) EntityDamageByBlockEvent(Block damager, Entity damagee, EntityDamageEvent.DamageCause cause, double damage) Deprecated, for removal: This API element is subject to removal in a future version.EntityDamageByBlockEvent(Block damager, Entity damagee, EntityDamageEvent.DamageCause cause, Map<EntityDamageEvent.DamageModifier, Double> modifiers, Map<EntityDamageEvent.DamageModifier, ? extends Function<? super Double, Double>> modifierFunctions) Deprecated, for removal: This API element is subject to removal in a future version.EntityDamageByBlockEvent(Block damager, Entity damagee, EntityDamageEvent.DamageCause cause, DamageSource damageSource, double damage) EntityDamageByBlockEvent(Block damager, Entity damagee, EntityDamageEvent.DamageCause cause, DamageSource damageSource, Map<EntityDamageEvent.DamageModifier, Double> modifiers, Map<EntityDamageEvent.DamageModifier, ? extends Function<? super Double, Double>> modifierFunctions) EntityDamageByEntityEvent(Entity damager, Entity damagee, EntityDamageEvent.DamageCause cause, double damage) Deprecated, for removal: This API element is subject to removal in a future version.EntityDamageByEntityEvent(Entity damager, Entity damagee, EntityDamageEvent.DamageCause cause, Map<EntityDamageEvent.DamageModifier, Double> modifiers, Map<EntityDamageEvent.DamageModifier, ? extends Function<? super Double, Double>> modifierFunctions) Deprecated, for removal: This API element is subject to removal in a future version.EntityDamageByEntityEvent(Entity damager, Entity damagee, EntityDamageEvent.DamageCause cause, DamageSource damageSource, double damage) EntityDamageByEntityEvent(Entity damager, Entity damagee, EntityDamageEvent.DamageCause cause, DamageSource damageSource, Map<EntityDamageEvent.DamageModifier, Double> modifiers, Map<EntityDamageEvent.DamageModifier, ? extends Function<? super Double, Double>> modifierFunctions) EntityDamageEvent(Entity damagee, EntityDamageEvent.DamageCause cause, double damage) Deprecated, for removal: This API element is subject to removal in a future version.EntityDamageEvent(Entity damagee, EntityDamageEvent.DamageCause cause, Map<EntityDamageEvent.DamageModifier, Double> modifiers, Map<EntityDamageEvent.DamageModifier, ? extends Function<? super Double, Double>> modifierFunctions) Deprecated, for removal: This API element is subject to removal in a future version.EntityDamageEvent(Entity damagee, EntityDamageEvent.DamageCause cause, DamageSource damageSource, double damage) EntityDamageEvent(Entity damagee, EntityDamageEvent.DamageCause cause, DamageSource damageSource, Map<EntityDamageEvent.DamageModifier, Double> modifiers, Map<EntityDamageEvent.DamageModifier, ? extends Function<? super Double, Double>> modifierFunctions) EntityDismountEvent(Entity what, Entity dismounted) EntityDropItemEvent(Entity entity, Item drop) EntityEnterBlockEvent(Entity entity, Block block) EntityEvent(Entity what) EntityExplodeEvent(Entity what, Location location, List<Block> blocks, float yield) EntityInteractEvent(Entity entity, Block block) EntityKnockbackByEntityEvent(LivingEntity entity, Entity source, EntityKnockbackEvent.KnockbackCause cause, double force, Vector rawKnockback, Vector knockback) EntityMountEvent(Entity what, Entity mount) EntityPlaceEvent(Entity entity, Player player, Block block, BlockFace blockFace) Deprecated.EntityPlaceEvent(Entity entity, Player player, Block block, BlockFace blockFace, EquipmentSlot hand) EntityPortalEnterEvent(Entity entity, Location location) EntityPortalEvent(Entity entity, Location from, Location to) EntityPortalEvent(Entity entity, Location from, Location to, int searchRadius) EntityPoseChangeEvent(Entity who, Pose pose) EntityRegainHealthEvent(Entity entity, double amount, EntityRegainHealthEvent.RegainReason regainReason) EntityRemoveEvent(Entity what, EntityRemoveEvent.Cause cause) EntityShootBowEvent(LivingEntity shooter, ItemStack bow, ItemStack consumable, Entity projectile, EquipmentSlot hand, float force, boolean consumeItem) EntitySpawnEvent(Entity spawnee) EntityTargetEvent(Entity entity, Entity target, EntityTargetEvent.TargetReason reason) EntityTargetLivingEntityEvent(Entity entity, LivingEntity target, EntityTargetEvent.TargetReason reason) EntityTeleportEvent(Entity what, Location from, Location to) EntityTransformEvent(Entity original, List<Entity> convertedList, EntityTransformEvent.TransformReason transformReason) EntityUnleashEvent(Entity entity, EntityUnleashEvent.UnleashReason reason) ExpBottleEvent(ThrownExpBottle bottle, Entity hitEntity, Block hitBlock, BlockFace hitFace, int exp) ExplosionPrimeEvent(Entity what, float radius, boolean fire) LingeringPotionSplashEvent(ThrownPotion potion, Entity hitEntity, Block hitBlock, BlockFace hitFace, AreaEffectCloud entity) PigZombieAngerEvent(PigZombie pigZombie, Entity target, int newAnger) PlayerLeashEntityEvent(Entity what, Entity leashHolder, Player leasher) Deprecated.PlayerLeashEntityEvent(Entity what, Entity leashHolder, Player leasher, EquipmentSlot hand) PotionSplashEvent(ThrownPotion potion, Entity hitEntity, Block hitBlock, BlockFace hitFace, Map<LivingEntity, Double> affectedEntities) ProjectileHitEvent(Projectile projectile, Entity hitEntity) ProjectileHitEvent(Projectile projectile, Entity hitEntity, Block hitBlock) ProjectileHitEvent(Projectile projectile, Entity hitEntity, Block hitBlock, BlockFace hitFace) ProjectileLaunchEvent(Entity what) SpawnerSpawnEvent(Entity spawnee, CreatureSpawner spawner) Constructor parameters in org.bukkit.event.entity with type arguments of type EntityModifierConstructorDescriptionEntityTransformEvent(Entity original, List<Entity> convertedList, 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(Hanging hanging, Entity remover) HangingBreakByEntityEvent(Hanging hanging, 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.Constructors in org.bukkit.event.player with parameters of type EntityModifierConstructorDescriptionPlayerBucketEntityEvent(Player player, Entity entity, ItemStack originalBucket, ItemStack entityBucket, EquipmentSlot hand) PlayerFishEvent(Player player, Entity entity, FishHook hookEntity, PlayerFishEvent.State state) PlayerFishEvent(Player player, Entity entity, FishHook hookEntity, EquipmentSlot hand, PlayerFishEvent.State state) PlayerHideEntityEvent(Player who, Entity entity) PlayerInteractAtEntityEvent(Player who, Entity clickedEntity, Vector position) PlayerInteractAtEntityEvent(Player who, Entity clickedEntity, Vector position, EquipmentSlot hand) PlayerInteractEntityEvent(Player who, Entity clickedEntity) PlayerInteractEntityEvent(Player who, Entity clickedEntity, EquipmentSlot hand) PlayerShearEntityEvent(Player who, Entity what) Deprecated.PlayerShearEntityEvent(Player who, Entity what, ItemStack item, EquipmentSlot hand) PlayerShowEntityEvent(Player who, Entity entity) PlayerUnleashEntityEvent(Entity entity, Player player) Deprecated.PlayerUnleashEntityEvent(Entity entity, Player player, EquipmentSlot hand) -
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(Vehicle vehicle, Entity attacker, double damage) VehicleDestroyEvent(Vehicle vehicle, Entity attacker) VehicleEnterEvent(Vehicle vehicle, Entity entered) VehicleEntityCollisionEvent(Vehicle vehicle, 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(GameEvent event, Location location, Entity entity, int radius, boolean isAsync) LootGenerateEvent(World world, Entity entity, InventoryHolder inventoryHolder, LootTable lootTable, LootContext lootContext, List<ItemStack> items, boolean plugin) PortalCreateEvent(List<BlockState> blocks, World world, Entity entity, PortalCreateEvent.CreateReason reason) Constructor parameters in org.bukkit.event.world with type arguments of type EntityModifierConstructorDescriptionEntitiesLoadEvent(Chunk chunk, List<Entity> entities) EntitiesUnloadEvent(Chunk chunk, List<Entity> entities) -
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 TypeMethodDescriptionItemFactory.enchantItem(Entity entity, ItemStack item, int level, boolean allowTreasures) Enchants the given item at the provided level. -
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(Entity lootedEntity) The entity that was killed. -
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 EntityMethods in org.bukkit.util with parameters of type EntityModifier and TypeMethodDescriptionbooleanEntityTransformer.transform(LimitedRegion region, int x, int y, int z, Entity entity, boolean allowedToSpawn) Transforms a entity in a structure.Constructors in org.bukkit.util with parameters of type EntityModifierConstructorDescriptionRayTraceResult(Vector hitPosition, Entity hitEntity) Creates a RayTraceResult.RayTraceResult(Vector hitPosition, Entity hitEntity, BlockFace hitBlockFace) Creates a RayTraceResult. -
Uses of Entity in org.spigotmc.event.entity
Methods in org.spigotmc.event.entity that return EntityModifier and TypeMethodDescriptionEntityDismountEvent.getDismounted()Deprecated.EntityMountEvent.getMount()Deprecated.Constructors in org.spigotmc.event.entity with parameters of type EntityModifierConstructorDescriptionEntityDismountEvent(Entity what, Entity dismounted) Deprecated.EntityMountEvent(Entity what, Entity mount) Deprecated.