Uses of Interface
org.bukkit.entity.Entity
-
Packages that use Entity Package Description org.bukkit More generalized classes in the API.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 org.bukkit.util Multi and single purpose classes to facilitate various programmatic concepts.org.spigotmc.event.entity -
-
Uses of Entity in org.bukkit
Methods in org.bukkit with type parameters of type Entity Modifier and Type Method Description <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>
TWorld. spawn(Location location, Class<T> clazz)Spawn an entity of a specific class at the givenLocation<T extends Entity>
TWorld. spawn(Location location, Class<T> clazz, 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 Entity[]Chunk. getEntities()Get a list of all entities in the chunk.static EntityBukkit. getEntity(UUID uuid)Gets an entity on the server by its UUIDEntityServer. getEntity(UUID uuid)Gets an entity on the server by its UUIDEntityWorld. spawnEntity(Location loc, EntityType type)Creates a entity at the givenLocationMethods in org.bukkit that return types with arguments of type Entity Modifier and Type Method Description Class<? extends Entity>EntityEffect. getApplicable()Gets entity superclass which this affect is applicable to.List<Entity>World. getEntities()Get a list of all entities in this WorldCollection<Entity>World. getEntitiesByClasses(Class<?>... classes)Get a collection of all entities in this World matching any of the given classes/interfacesCollection<Entity>World. getNearbyEntities(Location location, double x, double y, double z)Returns a list of entities within a bounding box centered around a Location.Collection<Entity>World. getNearbyEntities(Location location, double x, double y, double z, Predicate<Entity> filter)Returns a list of entities within a bounding box centered around a Location.Collection<Entity>World. getNearbyEntities(BoundingBox boundingBox)Returns a list of entities within the given bounding box.Collection<Entity>World. getNearbyEntities(BoundingBox boundingBox, Predicate<Entity> filter)Returns a list of entities within the given bounding box.static List<Entity>Bukkit. selectEntities(CommandSender sender, String selector)Selects entities using the given Vanilla selector.List<Entity>Server. selectEntities(CommandSender sender, 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, 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.Method parameters in org.bukkit with type arguments of type Entity Modifier and Type Method Description Collection<Entity>World. getNearbyEntities(Location location, double x, double y, double z, Predicate<Entity> filter)Returns a list of entities within a bounding box centered around a Location.Collection<Entity>World. getNearbyEntities(BoundingBox boundingBox, Predicate<Entity> filter)Returns a list of entities within the given bounding box.RayTraceResultWorld. rayTrace(Location start, Vector direction, double maxDistance, FluidCollisionMode fluidCollisionMode, boolean ignorePassableBlocks, double raySize, Predicate<Entity> filter)Performs a ray trace that checks for both block and entity collisions.RayTraceResultWorld. rayTraceEntities(Location start, Vector direction, double maxDistance, double raySize, Predicate<Entity> filter)Performs a ray trace that checks for entity collisions.RayTraceResultWorld. rayTraceEntities(Location start, Vector direction, double maxDistance, Predicate<Entity> filter)Performs a ray trace that checks for entity collisions. -
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 BatinterfaceBlazeRepresents 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.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.interfaceTameableinterfaceThrownExpBottleRepresents 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 EntityLivingEntity. getLeashHolder()Gets the entity that is currently leading this entity.EntityEntity. getPassenger()Deprecated.entities may have multiple passengers, usegetPassengers()EntityHumanEntity. getShoulderEntityLeft()Deprecated.There are currently no well defined semantics regarding serialized entities in Bukkit.EntityHumanEntity. getShoulderEntityRight()Deprecated.There are currently no well defined semantics regarding serialized entities in Bukkit.EntityTNTPrimed. getSource()Gets the source of this primed TNT.EntityPlayer. getSpectatorTarget()Gets the entity which is followed by the camera when inGameMode.SPECTATOR.EntityShulkerBullet. getTarget()Retrieve the target of this bullet.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 Class<? extends Entity>EntityType. getEntityClass()List<Entity>Entity. getNearbyEntities(double x, double y, double z)Returns a list of entities within a bounding box centered around this entityList<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(Entity passenger)Add a passenger to the vehicle.voidDamageable. damage(double amount, Entity source)Deals the given amount of damage to this entity, from a specified entity.booleanLivingEntity. hasLineOfSight(Entity other)Checks whether the living entity has block line of sight to another.booleanEntity. removePassenger(Entity passenger)Remove a passenger from the vehicle.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, usegetPassengers()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.voidPlayer. setSpectatorTarget(Entity entity)Sets the entity which is followed by the camera when inGameMode.SPECTATOR.voidShulkerBullet. setTarget(Entity target)Sets the target of this bulletbooleanEntity. teleport(Entity destination)Teleports this entity to the target Entity.booleanEntity. teleport(Entity destination, 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 EntityBlockShearEntityEvent. getEntity()Gets the entity that was sheared.EntityCauldronLevelChangeEvent. getEntity()Get entity which did this.EntityEntityBlockFormEvent. getEntity()Get the entity that formed the block.EntityBlockIgniteEvent. getIgnitingEntity()Gets the entity who ignited this blockConstructors in org.bukkit.event.block with parameters of type Entity Constructor Description BlockIgniteEvent(Block theBlock, BlockIgniteEvent.IgniteCause cause, Entity ignitingEntity)BlockIgniteEvent(Block theBlock, BlockIgniteEvent.IgniteCause cause, Entity ignitingEntity, Block ignitingBlock)BlockShearEntityEvent(Block dispenser, Entity sheared, ItemStack tool)CauldronLevelChangeEvent(Block block, Entity entity, CauldronLevelChangeEvent.ChangeReason reason, int oldLevel, int newLevel)EntityBlockFormEvent(Entity entity, Block block, 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 EntityEntityCombustByEntityEvent. getCombuster()Get the entity that caused the combustion event.EntityEntityDamageByEntityEvent. getDamager()Returns the entity that damaged the defender.EntityEntityEvent. getEntity()Returns the Entity involved in this eventEntityPlayerLeashEntityEvent. getEntity()Returns the entity being leashed.EntityProjectileHitEvent. getHitEntity()Gets the entity that was hit, if it was an entity that was hit.EntityPlayerLeashEntityEvent. getLeashHolder()Returns the entity that is holding the leash.EntityEntityShootBowEvent. getProjectile()Gets the projectile which will be launched by this eventEntityEntityTargetEvent. getTarget()Get the entity that this is targeting.EntityPigZombieAngerEvent. getTarget()Gets the entity (if any) which triggered this anger update.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 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(Entity projectile)Replaces the projectile which will be launchedvoidEntityTargetEvent. setTarget(Entity target)Set the entity that you want the mob to target instead.voidEntityTargetLivingEntityEvent. setTarget(Entity target)Set the Entity that you want the mob to target.Constructor parameters in org.bukkit.event.entity with type arguments of type Entity Constructor Description EntityTransformEvent(Entity original, List<Entity> convertedList, 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 EntityHangingBreakByEntityEvent. getRemover()Gets the entity that removed the hanging entity.Constructors in org.bukkit.event.hanging with parameters of type Entity Constructor Description HangingBreakByEntityEvent(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 Entity Modifier and Type Field Description protected EntityPlayerInteractEntityEvent. clickedEntityMethods in org.bukkit.event.player that return Entity Modifier and Type Method Description EntityPlayerFishEvent. getCaught()Gets the entity caught by the player.EntityPlayerShearEntityEvent. getEntity()Gets the entity the player is shearingEntityPlayerInteractEntityEvent. 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(Player player, Entity entity, FishHook hookEntity, PlayerFishEvent.State state)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)PlayerUnleashEntityEvent(Entity entity, Player player) -
Uses of Entity in org.bukkit.event.vehicle
Methods in org.bukkit.event.vehicle that return Entity Modifier and Type Method Description EntityVehicleDamageEvent. getAttacker()Gets the Entity that is attacking the vehicleEntityVehicleDestroyEvent. getAttacker()Gets the Entity that has destroyed the vehicle, potentially nullEntityVehicleEnterEvent. getEntered()Gets the Entity that entered the vehicle.EntityVehicleEntityCollisionEvent. getEntity()Constructors in org.bukkit.event.vehicle with parameters of type Entity Constructor Description VehicleDamageEvent(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 Entity Modifier and Type Method Description 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 PortalCreateEvent(List<BlockState> blocks, World world, Entity entity, PortalCreateEvent.CreateReason reason) -
Uses of Entity in org.bukkit.inventory
Methods in org.bukkit.inventory that return Entity Modifier and Type Method Description 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 EntityLootContext. getLootedEntity()Get theEntitythat was killed.Methods in org.bukkit.loot with parameters of type Entity Modifier and Type Method Description LootContext.BuilderLootContext.Builder. lootedEntity(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 EntityRayTraceResult. getHitEntity()Gets the hit entity.Constructors in org.bukkit.util with parameters of type Entity Constructor Description RayTraceResult(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 Entity Modifier and Type Method Description EntityEntityDismountEvent. getDismounted()EntityEntityMountEvent. getMount()Constructors in org.spigotmc.event.entity with parameters of type Entity Constructor Description EntityDismountEvent(Entity what, Entity dismounted)EntityMountEvent(Entity what, Entity mount)
-