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 givenLocation
Methods in org.bukkit that return Entity Modifier and Type Method Description Entity[]
Chunk. getEntities()
Get a list of all entities in the chunk.Entity
World. spawnEntity(Location loc, EntityType type)
Creates a entity at the givenLocation
Methods 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 interface
Ageable
Represents an entity that can age and breed.interface
Ambient
Represents an ambient mobinterface
Animals
Represents an Animal.interface
ArmorStand
interface
Arrow
Represents an arrow.interface
Bat
Represents a Batinterface
Blaze
Represents a Blaze monsterinterface
Boat
Represents a boat entity.interface
CaveSpider
Represents a Spider.interface
Chicken
Represents a Chicken.interface
ComplexEntityPart
Represents a single part of aComplexLivingEntity
interface
ComplexLivingEntity
Represents a complex living entity - one that is made up of various smaller partsinterface
Cow
Represents a Cow.interface
Creature
Represents a Creature.interface
Creeper
Represents a Creeperinterface
Damageable
Represents anEntity
that has health and can take damage.interface
Egg
Represents a thrown egg.interface
EnderCrystal
A crystal that heals nearby EnderDragonsinterface
EnderDragon
Represents an Ender Dragoninterface
EnderDragonPart
Represents an ender dragon partinterface
Enderman
Represents an Enderman.interface
Endermite
interface
EnderPearl
Represents a thrown Ender Pearl entityinterface
EnderSignal
Represents an Ender Signal, which is often created upon throwing an ender eyeinterface
ExperienceOrb
Represents an Experience Orb.interface
Explosive
A representation of an explosive entityinterface
FallingBlock
Represents a falling blockinterface
FallingSand
Deprecated.SeeFallingBlock
interface
Fireball
Represents a Fireball.interface
Firework
interface
Fish
Deprecated.in favor ofFishHook
interface
FishHook
Represents a fishing hook.interface
Flying
Represents a Flying Entity.interface
Ghast
Represents a Ghast.interface
Giant
Represents a Giant.interface
Golem
A mechanical creature that may harm enemies.interface
Guardian
interface
Hanging
Represents a Hanging entityinterface
Horse
Represents a Horse.interface
HumanEntity
Represents a human entity, such as an NPC or a playerinterface
IronGolem
An iron Golem that protects Villages.interface
Item
Represents an Item.interface
ItemFrame
Represents an Item Frameinterface
LargeFireball
Represents a largeFireball
interface
LeashHitch
Represents a Leash Hitch on a fenceinterface
LightningStrike
Represents an instance of a lightning strike.interface
LivingEntity
Represents a living entity, such as a monster or playerinterface
MagmaCube
Represents a MagmaCube.interface
Minecart
Represents a minecart entity.interface
Monster
Represents a Monster.interface
MushroomCow
Represents a mushroomCow
interface
NPC
Represents a non-player characterinterface
Ocelot
A wild tameable catinterface
Painting
Represents a Painting.interface
Pig
Represents a Pig.interface
PigZombie
Represents a Pig Zombie.interface
Player
Represents a player, connected or notinterface
PoweredMinecart
Deprecated.This class has been moved into a sub package;PoweredMinecart
should be used instead.interface
Projectile
Represents a shootable entity.interface
Rabbit
interface
Sheep
Represents a Sheep.interface
Silverfish
Represents a Silverfish.interface
Skeleton
Represents a Skeleton.interface
Slime
Represents a Slime.interface
SmallFireball
Represents a smallFireball
interface
Snowball
Represents a snowball.interface
Snowman
Represents a snowman entityinterface
Spider
Represents a Spider.interface
Squid
Represents a Squid.interface
StorageMinecart
Deprecated.This class has been moved into a sub package;StorageMinecart
should be used instead.interface
ThrownExpBottle
Represents a thrown Experience bottle.interface
ThrownPotion
Represents a thrown potion bottleinterface
TNTPrimed
Represents a Primed TNT.interface
Vehicle
Represents a vehicle entity.interface
Villager
Represents a villager NPCinterface
WaterMob
Represents a Water Mobinterface
Weather
Represents a Weather related entity, such as a storminterface
Witch
Represents a Witchinterface
Wither
Represents a Wither bossinterface
WitherSkull
Represents a wither skullFireball
.interface
Wolf
Represents a Wolfinterface
Zombie
Represents a Zombie.Methods in org.bukkit.entity that return Entity Modifier and Type Method Description Entity
LivingEntity. getLeashHolder()
Gets the entity that is currently leading this entity.Entity
Entity. getPassenger()
Gets the primary passenger of a vehicle.Entity
TNTPrimed. getSource()
Gets the source of this primed TNT.Entity
Player. getSpectatorTarget()
Gets the entity which is followed by the camera when inGameMode.SPECTATOR
.Entity
Entity. 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 void
Damageable. _INVALID_damage(int amount, Entity source)
Deprecated.void
Damageable. damage(double amount, Entity source)
Deals the given amount of damage to this entity, from a specified entity.boolean
LivingEntity. hasLineOfSight(Entity other)
Checks whether the living entity has block line of sight to another.boolean
LivingEntity. setLeashHolder(Entity holder)
Sets the leash on this entity to be held by the supplied entity.boolean
Entity. setPassenger(Entity passenger)
Set the passenger of a vehicle.void
Player. setSpectatorTarget(Entity entity)
Sets the entity which is followed by the camera when inGameMode.SPECTATOR
.boolean
Entity. teleport(Entity destination)
Teleports this entity to the target Entity.boolean
Entity. 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 interface
CommandMinecart
interface
ExplosiveMinecart
Represents a Minecart with TNT inside it that can explode when triggered.interface
HopperMinecart
Represents a Minecart with a Hopper inside itinterface
PoweredMinecart
Represents a powered minecart.interface
RideableMinecart
Represents a minecart that can have certainentities
as passengers.interface
SpawnerMinecart
Represents a Minecart with anentity spawner
inside it.interface
StorageMinecart
Represents 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 Entity
EntityBlockFormEvent. getEntity()
Get the entity that formed the block.Entity
BlockIgniteEvent. 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 Entity
EntityEvent. entity
Methods in org.bukkit.event.entity that return Entity Modifier and Type Method Description Entity
EntityCombustByEntityEvent. getCombuster()
Get the entity that caused the combustion event.Entity
EntityDamageByEntityEvent. getDamager()
Returns the entity that damaged the defender.Entity
EntityEvent. getEntity()
Returns the Entity involved in this eventEntity
PlayerLeashEntityEvent. getEntity()
Returns the entity being leashed.Entity
PlayerLeashEntityEvent. getLeashHolder()
Returns the entity that is holding the leash.Entity
EntityShootBowEvent. getProjectile()
Gets the projectile which will be launched by this eventEntity
EntityTargetEvent. getTarget()
Get the entity that this is targeting.Methods in org.bukkit.event.entity with parameters of type Entity Modifier and Type Method Description void
EntityShootBowEvent. setProjectile(Entity projectile)
Replaces the projectile which will be launchedvoid
EntityTargetEvent. setTarget(Entity target)
Set the entity that you want the mob to target instead.void
EntityTargetLivingEntityEvent. 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 Entity
HangingBreakByEntityEvent. 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 Entity
PaintingBreakByEntityEvent. 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 Entity
PlayerInteractEntityEvent. clickedEntity
Methods in org.bukkit.event.player that return Entity Modifier and Type Method Description Entity
PlayerFishEvent. getCaught()
Gets the entity caught by the player.Entity
PlayerShearEntityEvent. getEntity()
Gets the entity the player is shearingEntity
PlayerInteractEntityEvent. 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 theFish
hook 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 Entity
VehicleDamageEvent. getAttacker()
Gets the Entity that is attacking the vehicleEntity
VehicleDestroyEvent. getAttacker()
Gets the Entity that has destroyed the vehicle, potentially nullEntity
VehicleEnterEvent. getEntered()
Gets the Entity that entered the vehicle.Entity
VehicleEntityCollisionEvent. 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 Entity
EntityEquipment. 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 Entity
EntityDismountEvent. getDismounted()
Entity
EntityMountEvent. getMount()
Constructors in org.spigotmc.event.entity with parameters of type Entity Constructor Description EntityDismountEvent(Entity what, Entity dismounted)
EntityMountEvent(Entity what, Entity mount)