Uses of Interface
org.bukkit.entity.Entity
| Package | Description |
|---|---|
| org.bukkit |
More generalized classes in the API.
|
| org.bukkit.entity |
Interfaces for non-voxel objects that can exist in a
world, including all players, monsters, projectiles, etc. |
| org.bukkit.entity.minecart |
Interfaces for various
Minecart types. |
| org.bukkit.event.block | |
| org.bukkit.event.entity | |
| org.bukkit.event.hanging |
Events relating to entities that hang. |
| org.bukkit.event.painting | |
| org.bukkit.event.player | |
| org.bukkit.event.vehicle |
Events relating to vehicular entities. |
| org.bukkit.inventory |
Classes involved in manipulating player inventories and item interactions.
|
| 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>
java.util.Collection<T>World. getEntitiesByClass(java.lang.Class<T> cls)Get a collection of all entities in this World matching the given class/interface<T extends Entity>
java.util.Collection<T>World. getEntitiesByClass(java.lang.Class<T>... classes)Deprecated.<T extends Entity>
TWorld. spawn(Location location, java.lang.Class<T> clazz)Spawn an entity of a specific class at the givenLocationMethods in org.bukkit that return Entity Modifier and Type Method Description Entity[]Chunk. getEntities()Get a list of all entities in the chunk.EntityWorld. 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 java.util.List<Entity>World. getEntities()Get a list of all entities in this Worldjava.util.Collection<Entity>World. getEntitiesByClasses(java.lang.Class<?>... classes)Get a collection of all entities in this World matching any of the given classes/interfacesjava.util.Collection<Entity>World. getNearbyEntities(Location location, double x, double y, double z)Returns a list of entities within a bounding box centered around a Location. -
Uses of Entity in org.bukkit.entity
Subinterfaces of Entity in org.bukkit.entity Modifier and Type Interface Description interfaceAgeableRepresents an entity that can age and breed.interfaceAmbientRepresents an ambient mobinterfaceAnimalsRepresents an Animal.interfaceArmorStandinterfaceArrowRepresents an arrow.interfaceBatRepresents a BatinterfaceBlazeRepresents a Blaze monsterinterfaceBoatRepresents a boat entity.interfaceCaveSpiderRepresents a Spider.interfaceChickenRepresents a Chicken.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.interfaceEggRepresents a thrown egg.interfaceEnderCrystalA crystal that heals nearby EnderDragonsinterfaceEnderDragonRepresents an Ender DragoninterfaceEnderDragonPartRepresents an ender dragon partinterfaceEndermanRepresents an Enderman.interfaceEndermiteinterfaceEnderPearlRepresents a thrown Ender Pearl entityinterfaceEnderSignalRepresents an Ender Signal, which is often created upon throwing an ender eyeinterfaceExperienceOrbRepresents an Experience Orb.interfaceExplosiveA representation of an explosive entityinterfaceFallingBlockRepresents a falling blockinterfaceFallingSandDeprecated.SeeFallingBlockinterfaceFireballRepresents a Fireball.interfaceFireworkinterfaceFishDeprecated.in favor ofFishHookinterfaceFishHookRepresents a fishing hook.interfaceFlyingRepresents a Flying Entity.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 playerinterfaceIronGolemAn iron Golem that protects Villages.interfaceItemRepresents an Item.interfaceItemFrameRepresents an Item FrameinterfaceLargeFireballRepresents a largeFireballinterfaceLeashHitchRepresents a Leash Hitch on a fenceinterfaceLightningStrikeRepresents an instance of a lightning strike.interfaceLivingEntityRepresents a living entity, such as a monster or playerinterfaceMagmaCubeRepresents a MagmaCube.interfaceMinecartRepresents a minecart entity.interfaceMonsterRepresents a Monster.interfaceMushroomCowRepresents a mushroomCowinterfaceNPCRepresents a non-player characterinterfaceOcelotA wild tameable catinterfacePaintingRepresents a Painting.interfacePigRepresents a Pig.interfacePigZombieRepresents a Pig Zombie.interfacePlayerRepresents a player, connected or notinterfacePoweredMinecartDeprecated.This class has been moved into a sub package;PoweredMinecartshould be used instead.interfaceProjectileRepresents a shootable entity.interfaceRabbitinterfaceSheepRepresents a Sheep.interfaceSilverfishRepresents a Silverfish.interfaceSkeletonRepresents a Skeleton.interfaceSlimeRepresents a Slime.interfaceSmallFireballRepresents a smallFireballinterfaceSnowballRepresents a snowball.interfaceSnowmanRepresents a snowman entityinterfaceSpiderRepresents a Spider.interfaceSquidRepresents a Squid.interfaceStorageMinecartDeprecated.This class has been moved into a sub package;StorageMinecartshould be used instead.interfaceThrownExpBottleRepresents a thrown Experience bottle.interfaceThrownPotionRepresents a thrown potion bottleinterfaceTNTPrimedRepresents a Primed TNT.interfaceVehicleRepresents a vehicle entity.interfaceVillagerRepresents a villager NPCinterfaceWaterMobRepresents a Water MobinterfaceWeatherRepresents a Weather related entity, such as a storminterfaceWitchRepresents a WitchinterfaceWitherRepresents a Wither bossinterfaceWitherSkullRepresents a wither skullFireball.interfaceWolfRepresents a WolfinterfaceZombieRepresents a Zombie.Methods 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()Gets the primary passenger of a vehicle.EntityTNTPrimed. getSource()Gets the source of this primed TNT.EntityPlayer. getSpectatorTarget()Gets the entity which is followed by the camera when inGameMode.SPECTATOR.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 java.lang.Class<? extends Entity>CreatureType. getEntityClass()Deprecated.java.lang.Class<? extends Entity>EntityType. getEntityClass()java.util.List<Entity>Entity. getNearbyEntities(double x, double y, double z)Returns a list of entities within a bounding box centered around this entityMethods in org.bukkit.entity with parameters of type Entity Modifier and Type Method Description voidDamageable. _INVALID_damage(int amount, Entity source)Deprecated.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.booleanLivingEntity. setLeashHolder(Entity holder)Sets the leash on this entity to be held by the supplied entity.booleanEntity. setPassenger(Entity passenger)Set the passenger of a vehicle.voidPlayer. setSpectatorTarget(Entity entity)Sets the entity which is followed by the camera when inGameMode.SPECTATOR.booleanEntity. 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 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)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.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.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. -
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 entityConstructors in org.bukkit.event.hanging with parameters of type Entity Constructor Description HangingBreakByEntityEvent(Hanging hanging, Entity remover) -
Uses of Entity in org.bukkit.event.painting
Methods in org.bukkit.event.painting that return Entity Modifier and Type Method Description EntityPaintingBreakByEntityEvent. getRemover()Deprecated.Gets the entity that removed the paintingConstructors in org.bukkit.event.painting with parameters of type Entity Constructor Description PaintingBreakByEntityEvent(Painting painting, Entity remover)Deprecated. -
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 rightclicked by the player.Constructors in org.bukkit.event.player with parameters of type Entity Constructor Description PlayerFishEvent(Player player, Entity entity, Fish hookEntity, PlayerFishEvent.State state)PlayerFishEvent(Player player, Entity entity, PlayerFishEvent.State state)Deprecated.replaced byPlayerFishEvent(Player, Entity, Fish, State)to include theFishhook entity.PlayerInteractAtEntityEvent(Player who, Entity clickedEntity, Vector position)PlayerInteractEntityEvent(Player who, Entity clickedEntity)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)VehicleDamageEvent(Vehicle vehicle, Entity attacker, int damage)Deprecated.VehicleDestroyEvent(Vehicle vehicle, Entity attacker)VehicleEnterEvent(Vehicle vehicle, Entity entered)VehicleEntityCollisionEvent(Vehicle vehicle, Entity entity) -
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.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)