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.player | |
org.bukkit.event.vehicle |
Events relating to vehicular entities . |
org.bukkit.inventory |
Classes involved in manipulating player inventories and item interactions.
|
org.bukkit.loot | |
org.spigotmc.event.entity |
Modifier and Type | Method | Description |
---|---|---|
<T extends Entity> |
World.getEntitiesByClass(java.lang.Class<T> cls) |
Get a collection of all entities in this World matching the given
class/interface
|
<T extends Entity> |
World.getEntitiesByClass(java.lang.Class<T>... classes) |
Deprecated.
|
<T extends Entity> |
World.spawn(Location location,
java.lang.Class<T> clazz) |
Spawn an entity of a specific class at the given
Location |
<T extends Entity> |
World.spawn(Location location,
java.lang.Class<T> clazz,
Consumer<T> function) |
Spawn an entity of a specific class at the given
Location , with
the supplied function run before the entity is added to the world. |
Modifier and Type | Method | Description |
---|---|---|
Entity[] |
Chunk.getEntities() |
Get a list of all entities in the chunk.
|
static Entity |
Bukkit.getEntity(java.util.UUID uuid) |
Gets an entity on the server by its UUID
|
Entity |
Server.getEntity(java.util.UUID uuid) |
Gets an entity on the server by its UUID
|
Entity |
World.spawnEntity(Location loc,
EntityType type) |
Creates a entity at the given
Location |
Modifier and Type | Method | Description |
---|---|---|
java.lang.Class<? extends Entity> |
EntityEffect.getApplicable() |
Gets entity superclass which this affect is applicable to.
|
java.util.List<Entity> |
World.getEntities() |
Get a list of all entities in this World
|
java.util.Collection<Entity> |
World.getEntitiesByClasses(java.lang.Class<?>... classes) |
Get a collection of all entities in this World matching any of the
given classes/interfaces
|
java.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.
|
Modifier and Type | Interface | Description |
---|---|---|
interface |
AbstractHorse |
Represents a Horse-like creature.
|
interface |
Ageable |
Represents an entity that can age and breed.
|
interface |
Ambient |
Represents an ambient mob
|
interface |
Animals |
Represents an Animal.
|
interface |
AreaEffectCloud |
Represents an area effect cloud which will imbue a potion effect onto
entities which enter it.
|
interface |
ArmorStand |
|
interface |
Arrow |
Represents an arrow.
|
interface |
Bat |
Represents a Bat
|
interface |
Blaze |
Represents a Blaze monster
|
interface |
Boat |
Represents a boat entity.
|
interface |
CaveSpider |
Represents a Spider.
|
interface |
ChestedHorse |
Represents Horse-like creatures which can carry an inventory.
|
interface |
Chicken |
Represents a Chicken.
|
interface |
Cod |
Represents a cod fish.
|
interface |
ComplexEntityPart |
Represents a single part of a
ComplexLivingEntity |
interface |
ComplexLivingEntity |
Represents a complex living entity - one that is made up of various smaller
parts
|
interface |
Cow |
Represents a Cow.
|
interface |
Creature |
Represents a Creature.
|
interface |
Creeper |
Represents a Creeper
|
interface |
Damageable |
Represents an
Entity that has health and can take damage. |
interface |
Dolphin |
|
interface |
Donkey |
Represents a Donkey - variant of
ChestedHorse . |
interface |
DragonFireball |
|
interface |
Drowned |
Drowned zombie.
|
interface |
Egg |
Represents a thrown egg.
|
interface |
ElderGuardian |
Represents an ElderGuardian - variant of
Guardian . |
interface |
EnderCrystal |
A crystal that heals nearby EnderDragons
|
interface |
EnderDragon |
Represents an Ender Dragon
|
interface |
EnderDragonPart |
Represents an ender dragon part
|
interface |
Enderman |
Represents an Enderman.
|
interface |
Endermite |
|
interface |
EnderPearl |
Represents a thrown Ender Pearl entity
|
interface |
EnderSignal |
Represents an EnderSignal, which is created upon throwing an ender eye.
|
interface |
Evoker |
Represents an Evoker "Illager".
|
interface |
EvokerFangs |
Represents Evoker Fangs.
|
interface |
ExperienceOrb |
Represents an Experience Orb.
|
interface |
Explosive |
A representation of an explosive entity
|
interface |
FallingBlock |
Represents a falling block
|
interface |
Fireball |
Represents a Fireball.
|
interface |
Firework |
|
interface |
Fish |
Represents a fish entity.
|
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 entity
|
interface |
Horse |
Represents a Horse.
|
interface |
HumanEntity |
Represents a human entity, such as an NPC or a player
|
interface |
Husk |
Represents a Husk - variant of
Zombie . |
interface |
Illager |
Represents a type of "Illager".
|
interface |
Illusioner |
Represents an Illusioner "Illager".
|
interface |
IronGolem |
An iron Golem that protects Villages.
|
interface |
Item |
Represents an Item.
|
interface |
ItemFrame |
Represents an Item Frame
|
interface |
LargeFireball |
Represents a large
Fireball |
interface |
LeashHitch |
Represents a Leash Hitch on a fence
|
interface |
LightningStrike |
Represents an instance of a lightning strike.
|
interface |
LingeringPotion |
Represents a thrown lingering potion bottle
|
interface |
LivingEntity |
Represents a living entity, such as a monster or player
|
interface |
Llama |
Represents a Llama.
|
interface |
LlamaSpit |
Represents Llama spit.
|
interface |
MagmaCube |
Represents a MagmaCube.
|
interface |
Minecart |
Represents a minecart entity.
|
interface |
Mob |
Represents a Mob.
|
interface |
Monster |
Represents a Monster.
|
interface |
Mule |
Represents a Mule - variant of
ChestedHorse . |
interface |
MushroomCow |
Represents a mushroom
Cow |
interface |
NPC |
Represents a non-player character
|
interface |
Ocelot |
A wild tameable cat
|
interface |
Painting |
Represents a Painting.
|
interface |
Parrot |
Represents a Parrot.
|
interface |
Phantom |
Represents a phantom.
|
interface |
Pig |
Represents a Pig.
|
interface |
PigZombie |
Represents a Pig Zombie.
|
interface |
Player |
Represents a player, connected or not
|
interface |
PolarBear |
Represents a polar bear.
|
interface |
Projectile |
Represents a shootable entity.
|
interface |
PufferFish |
Represents a puffer fish.
|
interface |
Rabbit |
|
interface |
Salmon |
Represents a salmon fish.
|
interface |
Sheep |
Represents a Sheep.
|
interface |
Shulker |
|
interface |
ShulkerBullet |
|
interface |
Silverfish |
Represents a Silverfish.
|
interface |
Skeleton |
Represents a Skeleton.
|
interface |
SkeletonHorse |
Represents a SkeletonHorse - variant of
AbstractHorse . |
interface |
Slime |
Represents a Slime.
|
interface |
SmallFireball |
Represents a small
Fireball |
interface |
Snowball |
Represents a snowball.
|
interface |
Snowman |
Represents a snowman entity
|
interface |
SpectralArrow |
Represents a spectral arrow.
|
interface |
Spellcaster |
Represents a spell casting "Illager".
|
interface |
Spider |
Represents a Spider.
|
interface |
SplashPotion |
Represents a thrown splash potion bottle
|
interface |
Squid |
Represents a Squid.
|
interface |
Stray |
Represents a Stray - variant of
Skeleton . |
interface |
Tameable |
|
interface |
ThrownExpBottle |
Represents a thrown Experience bottle.
|
interface |
ThrownPotion |
Represents a thrown potion bottle
|
interface |
TippedArrow |
|
interface |
TNTPrimed |
Represents a Primed TNT.
|
interface |
Trident |
Represents a thrown trident.
|
interface |
TropicalFish |
Tropical fish.
|
interface |
Turtle |
Represents a turtle.
|
interface |
Vehicle |
Represents a vehicle entity.
|
interface |
Vex |
Represents a Vex.
|
interface |
Villager |
Represents a villager NPC
|
interface |
Vindicator |
Represents a Vindicator.
|
interface |
WaterMob |
Represents a Water Mob
|
interface |
Weather |
Represents a Weather related entity, such as a storm
|
interface |
Witch |
Represents a Witch
|
interface |
Wither |
Represents a Wither boss
|
interface |
WitherSkeleton |
Represents a WitherSkeleton - variant of
Skeleton . |
interface |
WitherSkull |
Represents a wither skull
Fireball . |
interface |
Wolf |
Represents a Wolf
|
interface |
Zombie |
Represents a Zombie.
|
interface |
ZombieHorse |
Represents a ZombieHorse - variant of
AbstractHorse . |
interface |
ZombieVillager |
Modifier and Type | Method | Description |
---|---|---|
Entity |
LivingEntity.getLeashHolder() |
Gets the entity that is currently leading this entity.
|
Entity |
Entity.getPassenger() |
Deprecated.
entities may have multiple passengers, use
getPassengers() |
Entity |
HumanEntity.getShoulderEntityLeft() |
Deprecated.
There are currently no well defined semantics regarding
serialized entities in Bukkit.
|
Entity |
HumanEntity.getShoulderEntityRight() |
Deprecated.
There are currently no well defined semantics regarding
serialized entities in Bukkit.
|
Entity |
TNTPrimed.getSource() |
Gets the source of this primed TNT.
|
Entity |
Player.getSpectatorTarget() |
Gets the entity which is followed by the camera when in
GameMode.SPECTATOR . |
Entity |
ShulkerBullet.getTarget() |
Retrieve the target of this bullet.
|
Entity |
Entity.getVehicle() |
Get the vehicle that this player is inside.
|
Modifier and Type | Method | Description |
---|---|---|
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
entity
|
java.util.List<Entity> |
Entity.getPassengers() |
Gets a list of passengers of this vehicle.
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
Entity.addPassenger(Entity passenger) |
Add a passenger to the vehicle.
|
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 |
Entity.removePassenger(Entity passenger) |
Remove a passenger from the vehicle.
|
boolean |
LivingEntity.setLeashHolder(Entity holder) |
Sets the leash on this entity to be held by the supplied entity.
|
boolean |
Entity.setPassenger(Entity passenger) |
Deprecated.
entities may have multiple passengers, use
getPassengers() |
void |
HumanEntity.setShoulderEntityLeft(Entity entity) |
Deprecated.
There are currently no well defined semantics regarding
serialized entities in Bukkit.
|
void |
HumanEntity.setShoulderEntityRight(Entity entity) |
Deprecated.
There are currently no well defined semantics regarding
serialized entities in Bukkit.
|
void |
Player.setSpectatorTarget(Entity entity) |
Sets the entity which is followed by the camera when in
GameMode.SPECTATOR . |
void |
ShulkerBullet.setTarget(Entity target) |
Sets the target of this bullet
|
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.
|
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 it
|
interface |
PoweredMinecart |
Represents a powered minecart.
|
interface |
RideableMinecart |
Represents a minecart that can have certain
entities as passengers. |
interface |
SpawnerMinecart |
Represents a Minecart with an
entity spawner inside it. |
interface |
StorageMinecart |
Represents a minecart with a chest.
|
Modifier and Type | Method | Description |
---|---|---|
Entity |
CauldronLevelChangeEvent.getEntity() |
Get entity which did this.
|
Entity |
EntityBlockFormEvent.getEntity() |
Get the entity that formed the block.
|
Entity |
BlockIgniteEvent.getIgnitingEntity() |
Gets the entity who ignited this block
|
Constructor | Description |
---|---|
BlockIgniteEvent(Block theBlock,
BlockIgniteEvent.IgniteCause cause,
Entity ignitingEntity) |
|
BlockIgniteEvent(Block theBlock,
BlockIgniteEvent.IgniteCause cause,
Entity ignitingEntity,
Block ignitingBlock) |
|
CauldronLevelChangeEvent(Block block,
Entity entity,
CauldronLevelChangeEvent.ChangeReason reason,
int oldLevel,
int newLevel) |
|
EntityBlockFormEvent(Entity entity,
Block block,
BlockState blockstate) |
Modifier and Type | Field | Description |
---|---|---|
protected Entity |
EntityEvent.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 event
|
Entity |
PlayerLeashEntityEvent.getEntity() |
Returns the entity being leashed.
|
Entity |
ProjectileHitEvent.getHitEntity() |
Gets the entity that was hit, if it was an entity that was hit.
|
Entity |
PlayerLeashEntityEvent.getLeashHolder() |
Returns the entity that is holding the leash.
|
Entity |
EntityShootBowEvent.getProjectile() |
Gets the projectile which will be launched by this event
|
Entity |
EntityTargetEvent.getTarget() |
Get the entity that this is targeting.
|
Entity |
PigZombieAngerEvent.getTarget() |
Gets the entity (if any) which triggered this anger update.
|
Modifier and Type | Method | Description |
---|---|---|
void |
EntityShootBowEvent.setProjectile(Entity projectile) |
Replaces the projectile which will be launched
|
void |
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.
|
Modifier and Type | Method | Description |
---|---|---|
Entity |
HangingBreakByEntityEvent.getRemover() |
Gets the entity that removed the hanging entity
|
Constructor | Description |
---|---|
HangingBreakByEntityEvent(Hanging hanging,
Entity remover) |
|
HangingBreakByEntityEvent(Hanging hanging,
Entity remover,
HangingBreakEvent.RemoveCause cause) |
Modifier and Type | Field | Description |
---|---|---|
protected Entity |
PlayerInteractEntityEvent.clickedEntity |
Modifier and Type | Method | Description |
---|---|---|
Entity |
PlayerFishEvent.getCaught() |
Gets the entity caught by the player.
|
Entity |
PlayerShearEntityEvent.getEntity() |
Gets the entity the player is shearing
|
Entity |
PlayerInteractEntityEvent.getRightClicked() |
Gets the entity that was rightclicked by the player.
|
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) |
Modifier and Type | Method | Description |
---|---|---|
Entity |
VehicleDamageEvent.getAttacker() |
Gets the Entity that is attacking the vehicle
|
Entity |
VehicleDestroyEvent.getAttacker() |
Gets the Entity that has destroyed the vehicle, potentially null
|
Entity |
VehicleEnterEvent.getEntered() |
Gets the Entity that entered the vehicle.
|
Entity |
VehicleEntityCollisionEvent.getEntity() |
Constructor | Description |
---|---|
VehicleDamageEvent(Vehicle vehicle,
Entity attacker,
double damage) |
|
VehicleDestroyEvent(Vehicle vehicle,
Entity attacker) |
|
VehicleEnterEvent(Vehicle vehicle,
Entity entered) |
|
VehicleEntityCollisionEvent(Vehicle vehicle,
Entity entity) |
Modifier and Type | Method | Description |
---|---|---|
Entity |
EntityEquipment.getHolder() |
Get the entity this EntityEquipment belongs to
|
Modifier and Type | Method | Description |
---|---|---|
Entity |
LootContext.getLootedEntity() |
Get the
Entity that was killed. |
Modifier and Type | Method | Description |
---|---|---|
LootContext.Builder |
LootContext.Builder.lootedEntity(Entity lootedEntity) |
The entity that was killed.
|
Modifier and Type | Method | Description |
---|---|---|
Entity |
EntityDismountEvent.getDismounted() |
|
Entity |
EntityMountEvent.getMount() |
Constructor | Description |
---|---|
EntityDismountEvent(Entity what,
Entity dismounted) |
|
EntityMountEvent(Entity what,
Entity mount) |
Copyright © 2018. All rights reserved.