Uses of Interface
org.bukkit.entity.Entity
-
Packages that use Entity Package Description org.bukkit The root package of the Bukkit API, contains generalized API classes.org.bukkit.block Classes used to manipulate the voxels in aworld, including special states.org.bukkit.entity Interfaces for non-voxel objects that can exist in aworld, including all players, monsters, projectiles, etc.org.bukkit.entity.minecart Interfaces for variousMinecarttypes.org.bukkit.event.block org.bukkit.event.entity org.bukkit.event.hanging Eventsrelating toentities that hang.org.bukkit.event.player org.bukkit.event.vehicle Eventsrelating tovehicular entities.org.bukkit.event.world org.bukkit.inventory Classes involved in manipulating player inventories and item interactions.org.bukkit.loot Classes relevant to loot table manipulation and generation.org.bukkit.util Multi and single purpose classes to facilitate various programmatic concepts.org.spigotmc.event.entity Spigot-specific entity events. -
-
Uses of Entity in org.bukkit
Methods in org.bukkit with type parameters of type Entity Modifier and Type Method Description <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>
TWorld. spawn(@NotNull Location location, @NotNull Class<T> clazz)Spawn an entity of a specific class at the givenLocation<T extends Entity>
TWorld. 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.Methods in org.bukkit that return Entity Modifier and Type Method Description @NotNull Entity[]Chunk. getEntities()Get a list of all entities in the chunk.static @Nullable EntityBukkit. getEntity(@NotNull UUID uuid)Gets an entity on the server by its UUID@Nullable EntityServer. getEntity(@NotNull UUID uuid)Gets an entity on the server by its UUID@NotNull EntityWorld. spawnEntity(@NotNull Location loc, @NotNull EntityType type)Creates a entity at the givenLocationMethods in org.bukkit that return types with arguments of type Entity Modifier and Type Method Description @NotNull Class<? extends Entity>EntityEffect. getApplicable()Gets entity superclass which this affect is applicable to.@NotNull List<Entity>World. getEntities()Get a list of all entities in this World@NotNull Collection<Entity>World. getEntitiesByClasses(@NotNull Class<?>... classes)Get a collection of all entities in this World matching any of the given classes/interfaces@NotNull Collection<Entity>World. getNearbyEntities(@NotNull Location location, double x, double y, double z)Returns a list of entities within a bounding box centered around a Location.@NotNull Collection<Entity>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.@NotNull Collection<Entity>World. getNearbyEntities(@NotNull BoundingBox boundingBox)Returns a list of entities within the given bounding box.@NotNull Collection<Entity>World. getNearbyEntities(@NotNull BoundingBox boundingBox, @Nullable Predicate<Entity> filter)Returns a list of entities within the given bounding box.static @NotNull List<Entity>Bukkit. selectEntities(@NotNull CommandSender sender, @NotNull String selector)Selects entities using the given Vanilla selector.@NotNull List<Entity>Server. selectEntities(@NotNull CommandSender sender, @NotNull String selector)Selects entities using the given Vanilla selector.Methods in org.bukkit with parameters of type Entity Modifier and Type Method Description 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.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.Method parameters in org.bukkit with type arguments of type Entity Modifier and Type Method Description @NotNull Collection<Entity>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.@NotNull Collection<Entity>World. getNearbyEntities(@NotNull BoundingBox boundingBox, @Nullable Predicate<Entity> filter)Returns a list of entities within the given bounding box.@Nullable RayTraceResultWorld. 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.@Nullable RayTraceResultWorld. rayTraceEntities(@NotNull Location start, @NotNull Vector direction, double maxDistance, double raySize, @Nullable Predicate<Entity> filter)Performs a ray trace that checks for entity collisions.@Nullable RayTraceResultWorld. rayTraceEntities(@NotNull Location start, @NotNull Vector direction, double maxDistance, @Nullable Predicate<Entity> filter)Performs a ray trace that checks for entity collisions. -
Uses of Entity in org.bukkit.block
Classes in org.bukkit.block with type parameters of type Entity Modifier and Type Interface Description interfaceEntityBlockStorage<T extends Entity>Represents a captured state of a block which stores entities.Methods in org.bukkit.block with parameters of type Entity Modifier and Type Method Description @NotNull Collection<ItemStack>Block. getDrops(@NotNull ItemStack tool, @Nullable Entity entity)Returns a list of items which would drop by the entity destroying this block with a specific tool -
Uses of Entity in org.bukkit.entity
Subinterfaces of Entity in org.bukkit.entity Modifier and Type Interface Description interfaceAbstractArrowRepresents an arrow.interfaceAbstractHorseRepresents a Horse-like creature.interfaceAbstractVillagerRepresents a villager NPCinterfaceAgeableRepresents an entity that can age and breed.interfaceAmbientRepresents an ambient mobinterfaceAnimalsRepresents an Animal.interfaceAreaEffectCloudRepresents an area effect cloud which will imbue a potion effect onto entities which enter it.interfaceArmorStandinterfaceArrowinterfaceBatRepresents a BatinterfaceBeeRepresents a Bee.interfaceBlazeRepresents a Blaze monsterinterfaceBoatRepresents a boat entity.interfaceBossRepresents the Boss Entity.interfaceCatMeow.interfaceCaveSpiderRepresents a Spider.interfaceChestedHorseRepresents Horse-like creatures which can carry an inventory.interfaceChickenRepresents a Chicken.interfaceCodRepresents a cod fish.interfaceComplexEntityPartRepresents a single part of aComplexLivingEntityinterfaceComplexLivingEntityRepresents a complex living entity - one that is made up of various smaller partsinterfaceCowRepresents a Cow.interfaceCreatureRepresents a Creature.interfaceCreeperRepresents a CreeperinterfaceDamageableRepresents anEntitythat has health and can take damage.interfaceDolphininterfaceDonkeyRepresents a Donkey - variant ofChestedHorse.interfaceDragonFireballinterfaceDrownedDrowned zombie.interfaceEggRepresents a thrown egg.interfaceElderGuardianRepresents an ElderGuardian - variant ofGuardian.interfaceEnderCrystalA crystal that heals nearby EnderDragonsinterfaceEnderDragonRepresents an Ender DragoninterfaceEnderDragonPartRepresents an ender dragon partinterfaceEndermanRepresents an Enderman.interfaceEndermiteinterfaceEnderPearlRepresents a thrown Ender Pearl entityinterfaceEnderSignalRepresents an EnderSignal, which is created upon throwing an ender eye.interfaceEvokerRepresents an Evoker "Illager".interfaceEvokerFangsRepresents Evoker Fangs.interfaceExperienceOrbRepresents an Experience Orb.interfaceExplosiveA representation of an explosive entityinterfaceFallingBlockRepresents a falling blockinterfaceFireballRepresents a Fireball.interfaceFireworkinterfaceFishRepresents a fish entity.interfaceFishHookRepresents a fishing hook.interfaceFlyingRepresents a Flying Entity.interfaceFoxWhat does the fox say?interfaceGhastRepresents a Ghast.interfaceGiantRepresents a Giant.interfaceGolemA mechanical creature that may harm enemies.interfaceGuardianinterfaceHangingRepresents a Hanging entityinterfaceHorseRepresents a Horse.interfaceHumanEntityRepresents a human entity, such as an NPC or a playerinterfaceHuskRepresents a Husk - variant ofZombie.interfaceIllagerRepresents a type of "Illager".interfaceIllusionerRepresents an Illusioner "Illager".interfaceIronGolemAn iron Golem that protects Villages.interfaceItemRepresents a dropped item.interfaceItemFrameRepresents an Item FrameinterfaceLargeFireballRepresents a largeFireballinterfaceLeashHitchRepresents a Leash Hitch on a fenceinterfaceLightningStrikeRepresents an instance of a lightning strike.interfaceLingeringPotionDeprecated.lingering status depends on only on the potion item.interfaceLivingEntityRepresents a living entity, such as a monster or playerinterfaceLlamaRepresents a Llama.interfaceLlamaSpitRepresents Llama spit.interfaceMagmaCubeRepresents a MagmaCube.interfaceMinecartRepresents a minecart entity.interfaceMobRepresents a Mob.interfaceMonsterRepresents a Monster.interfaceMuleRepresents a Mule - variant ofChestedHorse.interfaceMushroomCowRepresents a mushroomCowinterfaceNPCRepresents a non-player characterinterfaceOcelotA wild tameable catinterfacePaintingRepresents a Painting.interfacePandaPanda entity.interfaceParrotRepresents a Parrot.interfacePhantomRepresents a phantom.interfacePigRepresents a Pig.interfacePigZombieRepresents a Pig Zombie.interfacePillagerIllager entity.interfacePlayerRepresents a player, connected or notinterfacePolarBearRepresents a polar bear.interfaceProjectileRepresents a shootable entity.interfacePufferFishRepresents a puffer fish.interfaceRabbitinterfaceRaiderinterfaceRavagerIllager beast.interfaceSalmonRepresents a salmon fish.interfaceSheepRepresents a Sheep.interfaceShulkerinterfaceShulkerBulletinterfaceSilverfishRepresents a Silverfish.interfaceSizedFireballRepresents a sized fireball.interfaceSkeletonRepresents a Skeleton.interfaceSkeletonHorseRepresents a SkeletonHorse - variant ofAbstractHorse.interfaceSlimeRepresents a Slime.interfaceSmallFireballRepresents a smallFireballinterfaceSnowballRepresents a snowball.interfaceSnowmanRepresents a snowman entityinterfaceSpectralArrowRepresents a spectral arrow.interfaceSpellcasterRepresents a spell casting "Illager".interfaceSpiderRepresents a Spider.interfaceSplashPotionDeprecated.splash status depends on only on the potion item.interfaceSquidRepresents a Squid.interfaceStrayRepresents a Stray - variant ofSkeleton.interfaceTameableinterfaceThrowableProjectileinterfaceThrownExpBottleRepresents a thrown Experience bottle.interfaceThrownPotionRepresents a thrown potion bottleinterfaceTippedArrowDeprecated.tipped status depends only on base potion type not being UNCRAFTABLE and effects being empty.interfaceTNTPrimedRepresents a Primed TNT.interfaceTraderLlamaRepresents a trader Llama.interfaceTridentRepresents a thrown trident.interfaceTropicalFishTropical fish.interfaceTurtleRepresents a turtle.interfaceVehicleRepresents a vehicle entity.interfaceVexRepresents a Vex.interfaceVillagerRepresents a villager NPCinterfaceVindicatorRepresents a Vindicator.interfaceWanderingTraderRepresents a wandering trader NPCinterfaceWaterMobRepresents a Water MobinterfaceWitchRepresents a WitchinterfaceWitherRepresents a Wither bossinterfaceWitherSkeletonRepresents a WitherSkeleton - variant ofSkeleton.interfaceWitherSkullRepresents a wither skullFireball.interfaceWolfRepresents a WolfinterfaceZombieRepresents a Zombie.interfaceZombieHorseRepresents a ZombieHorse - variant ofAbstractHorse.interfaceZombieVillagerMethods in org.bukkit.entity that return Entity Modifier and Type Method Description @NotNull EntityLivingEntity. getLeashHolder()Gets the entity that is currently leading this entity.@Nullable EntityEntity. getPassenger()Deprecated.entities may have multiple passengers, usegetPassengers()@Nullable EntityHumanEntity. getShoulderEntityLeft()Deprecated.There are currently no well defined semantics regarding serialized entities in Bukkit.@Nullable EntityHumanEntity. getShoulderEntityRight()Deprecated.There are currently no well defined semantics regarding serialized entities in Bukkit.@Nullable EntityTNTPrimed. getSource()Gets the source of this primed TNT.@Nullable EntityPlayer. getSpectatorTarget()Gets the entity which is followed by the camera when inGameMode.SPECTATOR.@Nullable EntityShulkerBullet. getTarget()Retrieve the target of this bullet.@Nullable EntityEntity. getVehicle()Get the vehicle that this player is inside.Methods in org.bukkit.entity that return types with arguments of type Entity Modifier and Type Method Description @Nullable Class<? extends Entity>EntityType. getEntityClass()@NotNull List<Entity>Entity. getNearbyEntities(double x, double y, double z)Returns a list of entities within a bounding box centered around this entity@NotNull List<Entity>Entity. getPassengers()Gets a list of passengers of this vehicle.Methods in org.bukkit.entity with parameters of type Entity Modifier and Type Method Description booleanEntity. addPassenger(@NotNull Entity passenger)Add a passenger to the vehicle.voidLivingEntity. attack(@NotNull Entity target)Makes this entity attack the given entity with a melee attack.voidDamageable. damage(double amount, @Nullable Entity source)Deals the given amount of damage to this entity, from a specified entity.booleanLivingEntity. hasLineOfSight(@NotNull Entity other)Checks whether the living entity has block line of sight to another.booleanEntity. removePassenger(@NotNull Entity passenger)Remove a passenger from the vehicle.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, usegetPassengers()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.voidPlayer. setSpectatorTarget(@Nullable Entity entity)Sets the entity which is followed by the camera when inGameMode.SPECTATOR.voidShulkerBullet. setTarget(@Nullable Entity target)Sets the target of this bulletbooleanEntity. teleport(@NotNull Entity destination)Teleports 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.minecart Modifier and Type Interface Description interfaceCommandMinecartinterfaceExplosiveMinecartRepresents a Minecart with TNT inside it that can explode when triggered.interfaceHopperMinecartRepresents a Minecart with a Hopper inside itinterfacePoweredMinecartRepresents a powered minecart.interfaceRideableMinecartRepresents a minecart that can have certainentitiesas passengers.interfaceSpawnerMinecartRepresents a Minecart with anentity spawnerinside it.interfaceStorageMinecartRepresents a minecart with a chest. -
Uses of Entity in org.bukkit.event.block
Methods in org.bukkit.event.block that return Entity Modifier and Type Method Description @NotNull EntityBlockShearEntityEvent. getEntity()Gets the entity that was sheared.@Nullable EntityCauldronLevelChangeEvent. getEntity()Get entity which did this.@NotNull EntityEntityBlockFormEvent. getEntity()Get the entity that formed the block.@Nullable EntityBlockIgniteEvent. getIgnitingEntity()Gets the entity who ignited this blockConstructors in org.bukkit.event.block with parameters of type Entity Constructor Description BlockIgniteEvent(@NotNull Block theBlock, @NotNull BlockIgniteEvent.IgniteCause cause, @NotNull 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)CauldronLevelChangeEvent(@NotNull Block block, @Nullable Entity entity, @NotNull CauldronLevelChangeEvent.ChangeReason reason, int oldLevel, int newLevel)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 Entity Modifier and Type Field Description protected EntityEntityEvent. entityMethods in org.bukkit.event.entity that return Entity Modifier and Type Method Description @NotNull EntityEntityCombustByEntityEvent. getCombuster()Get the entity that caused the combustion event.@NotNull EntityEntityDamageByEntityEvent. getDamager()Returns the entity that damaged the defender.@NotNull EntityEntityEvent. getEntity()Returns the Entity involved in this event@NotNull EntityPlayerLeashEntityEvent. getEntity()Returns the entity being leashed.@Nullable EntityProjectileHitEvent. getHitEntity()Gets the entity that was hit, if it was an entity that was hit.@NotNull EntityPlayerLeashEntityEvent. getLeashHolder()Returns the entity that is holding the leash.@NotNull EntityEntityShootBowEvent. getProjectile()Gets the projectile which will be launched by this event@Nullable EntityEntityTargetEvent. getTarget()Get the entity that this is targeting.@Nullable EntityPigZombieAngerEvent. getTarget()Gets the entity (if any) which triggered this anger update.@NotNull EntityEntityTransformEvent. getTransformedEntity()Gets the entity that the original entity was transformed to.Methods in org.bukkit.event.entity that return types with arguments of type Entity Modifier and Type Method Description @NotNull List<Entity>EntityTransformEvent. getTransformedEntities()Gets the entities that the original entity was transformed to.Methods in org.bukkit.event.entity with parameters of type Entity Modifier and Type Method Description voidEntityShootBowEvent. setProjectile(@NotNull Entity projectile)Replaces the projectile which will be launchedvoidEntityTargetEvent. setTarget(@Nullable Entity target)Set the entity that you want the mob to target instead.voidEntityTargetLivingEntityEvent. setTarget(@Nullable Entity target)Set the Entity that you want the mob to target.Constructors in org.bukkit.event.entity with parameters of type Entity Constructor Description EntityAirChangeEvent(@NotNull Entity what, int amount)EntityChangeBlockEvent(@NotNull Entity what, @NotNull Block block, @NotNull BlockData to)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 com.google.common.base.Function<? super Double,Double>> modifierFunctions)EntityDamageByEntityEvent(@NotNull Entity damager, @NotNull Entity damagee, @NotNull EntityDamageEvent.DamageCause cause, double damage)EntityDamageByEntityEvent(@NotNull Entity damager, @NotNull Entity damagee, @NotNull EntityDamageEvent.DamageCause cause, @NotNull Map<EntityDamageEvent.DamageModifier,Double> modifiers, @NotNull Map<EntityDamageEvent.DamageModifier,? extends com.google.common.base.Function<? super Double,Double>> modifierFunctions)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 com.google.common.base.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)Deprecated.EntityPortalEnterEvent(@NotNull Entity entity, @NotNull Location location)EntityPortalEvent(@NotNull Entity entity, @NotNull Location from, @Nullable Location to)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)EntityShootBowEvent(@NotNull LivingEntity shooter, @Nullable ItemStack bow, @NotNull Entity projectile, float force)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)EntityTeleportEvent(@NotNull Entity what, @NotNull Location from, @Nullable Location to)EntityTransformEvent(@NotNull Entity original, @NotNull List<Entity> convertedList, @NotNull EntityTransformEvent.TransformReason transformReason)EntityUnleashEvent(@NotNull Entity entity, @NotNull EntityUnleashEvent.UnleashReason reason)ExplosionPrimeEvent(@NotNull Entity what, float radius, boolean fire)PigZombieAngerEvent(@NotNull PigZombie pigZombie, @Nullable Entity target, int newAnger)PlayerLeashEntityEvent(@NotNull Entity what, @NotNull Entity leashHolder, @NotNull Player leasher)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)ProjectileLaunchEvent(@NotNull Entity what)SpawnerSpawnEvent(@NotNull Entity spawnee, @NotNull CreatureSpawner spawner)Constructor parameters in org.bukkit.event.entity with type arguments of type Entity Constructor Description EntityTransformEvent(@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 Entity Modifier and Type Method Description @Nullable EntityHangingBreakByEntityEvent. getRemover()Gets the entity that removed the hanging entity.Constructors in org.bukkit.event.hanging with parameters of type Entity Constructor Description HangingBreakByEntityEvent(@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 Entity Modifier and Type Field Description protected EntityPlayerInteractEntityEvent. clickedEntityMethods in org.bukkit.event.player that return Entity Modifier and Type Method Description @Nullable EntityPlayerFishEvent. getCaught()Gets the entity caught by the player.@NotNull EntityPlayerShearEntityEvent. getEntity()Gets the entity the player is shearing@NotNull EntityPlayerInteractEntityEvent. getRightClicked()Gets the entity that was right-clicked by the player.Constructors in org.bukkit.event.player with parameters of type Entity Constructor Description PlayerFishEvent(@NotNull Player player, @Nullable Entity entity, @NotNull FishHook hookEntity, @NotNull PlayerFishEvent.State state)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)PlayerUnleashEntityEvent(@NotNull Entity entity, @NotNull Player player) -
Uses of Entity in org.bukkit.event.vehicle
Methods in org.bukkit.event.vehicle that return Entity Modifier and Type Method Description @Nullable EntityVehicleDamageEvent. getAttacker()Gets the Entity that is attacking the vehicle@Nullable EntityVehicleDestroyEvent. getAttacker()Gets the Entity that has destroyed the vehicle, potentially null@NotNull EntityVehicleEnterEvent. getEntered()Gets the Entity that entered the vehicle.@NotNull EntityVehicleEntityCollisionEvent. getEntity()Constructors in org.bukkit.event.vehicle with parameters of type Entity Constructor Description VehicleDamageEvent(@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 Entity Modifier and Type Method Description @Nullable EntityLootGenerateEvent. getEntity()Get the entity used as context for loot generation (if applicable).@Nullable EntityPortalCreateEvent. getEntity()Returns the Entity that triggered this portal creation (if available)Constructors in org.bukkit.event.world with parameters of type Entity Constructor Description 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
Methods in org.bukkit.inventory that return Entity Modifier and Type Method Description @Nullable EntityEntityEquipment. getHolder()Get the entity this EntityEquipment belongs to -
Uses of Entity in org.bukkit.loot
Methods in org.bukkit.loot that return Entity Modifier and Type Method Description @Nullable EntityLootContext. getLootedEntity()Get theEntitythat was killed.Methods in org.bukkit.loot with parameters of type Entity Modifier and Type Method Description @NotNull LootContext.BuilderLootContext.Builder. lootedEntity(@Nullable Entity lootedEntity)The entity that was killed. -
Uses of Entity in org.bukkit.util
Methods in org.bukkit.util that return Entity Modifier and Type Method Description @Nullable EntityRayTraceResult. getHitEntity()Gets the hit entity.Constructors in org.bukkit.util with parameters of type Entity Constructor Description RayTraceResult(@NotNull Vector hitPosition, @Nullable Entity hitEntity)Creates a RayTraceResult.RayTraceResult(@NotNull Vector hitPosition, @Nullable Entity hitEntity, @Nullable BlockFace hitBlockFace)Creates a RayTraceResult. -
Uses of Entity in org.spigotmc.event.entity
Methods in org.spigotmc.event.entity that return Entity Modifier and Type Method Description @NotNull EntityEntityDismountEvent. getDismounted()@NotNull EntityEntityMountEvent. getMount()Constructors in org.spigotmc.event.entity with parameters of type Entity Constructor Description EntityDismountEvent(@NotNull Entity what, @NotNull Entity dismounted)EntityMountEvent(@NotNull Entity what, @NotNull Entity mount)
-