Package | Description |
---|---|
com.destroystokyo.paper.entity | |
com.destroystokyo.paper.event.block | |
com.destroystokyo.paper.event.entity | |
com.destroystokyo.paper.event.player | |
com.destroystokyo.paper.loottable | |
io.papermc.paper.event.block | |
org.bukkit |
The root package of the Bukkit API, contains generalized API classes.
|
org.bukkit.block |
Classes used to manipulate the voxels in a
world ,
including special states. |
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.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.
|
Modifier and Type | Interface and Description |
---|---|
interface |
RangedEntity |
Modifier and Type | Method and Description |
---|---|
@NotNull Entity |
TargetEntityInfo.getEntity()
Get the entity that is targeted
|
Constructor and Description |
---|
TargetEntityInfo(@NotNull Entity entity,
@NotNull Vector hitVec) |
Modifier and Type | Method and Description |
---|---|
@Nullable Entity |
TNTPrimeEvent.getPrimerEntity()
Gets the TNT primer
Entity . |
Constructor and Description |
---|
TNTPrimeEvent(@NotNull Block theBlock,
@NotNull TNTPrimeEvent.PrimeReason reason,
@Nullable Entity primerEntity) |
Modifier and Type | Method and Description |
---|---|
@NotNull Entity |
ProjectileCollideEvent.getCollidedWith()
Get the entity the projectile collided with
|
@NotNull Entity |
EntityPathfindEvent.getEntity()
The Entity that is pathfinding.
|
@NotNull Entity |
EntityKnockbackByEntityEvent.getHitBy() |
@NotNull Entity |
EntityZapEvent.getReplacementEntity()
Gets the entity that will replace the struck entity.
|
@Nullable Entity |
PhantomPreSpawnEvent.getSpawningEntity()
Get the entity this phantom is spawning for
|
@Nullable Entity |
EntityPathfindEvent.getTargetEntity()
If the Entity is trying to pathfind to an entity, this is the entity in relation.
|
Entity |
EntityTransformedEvent.getTransformed()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
@NotNull Entity |
PlayerAttackEntityCooldownResetEvent.getAttackedEntity()
Returns the entity attacked by the player
|
@NotNull Entity |
PlayerStartSpectatingEntityEvent.getCurrentSpectatorTarget()
Gets the entity that the player is currently spectating or themselves if they weren't spectating anything
|
@NotNull Entity |
PlayerStartSpectatingEntityEvent.getNewSpectatorTarget()
Gets the new entity that the player will now be spectating
|
@NotNull Entity |
PlayerStopSpectatingEntityEvent.getSpectatorTarget()
Gets the entity that the player is spectating
|
Constructor and Description |
---|
PlayerAttackEntityCooldownResetEvent(@NotNull Player who,
@NotNull Entity attackedEntity,
float cooledAttackStrength) |
PlayerStartSpectatingEntityEvent(@NotNull Player player,
@NotNull Entity currentSpectatorTarget,
@NotNull Entity newSpectatorTarget) |
PlayerStartSpectatingEntityEvent(@NotNull Player player,
@NotNull Entity currentSpectatorTarget,
@NotNull Entity newSpectatorTarget) |
PlayerStopSpectatingEntityEvent(@NotNull Player player,
@NotNull Entity spectatorTarget) |
Modifier and Type | Method and Description |
---|---|
@NotNull Entity |
LootableEntityInventory.getEntity()
Gets the entity that is lootable
|
Modifier and Type | Method and Description |
---|---|
@Nullable Entity |
BellRingEvent.getEntity()
Gets the entity that rang the bell.
|
Constructor and Description |
---|
BellRingEvent(@NotNull Block block,
@Nullable Entity entity) |
Modifier and Type | Method and Description |
---|---|
<T extends Entity> |
World.getEntitiesByClass(Class<T>... classes)
Deprecated.
|
<T extends Entity> |
World.getEntitiesByClass(@NotNull Class<T> cls)
Get a collection of all entities in this World matching the given
class/interface
|
<T extends Entity> |
Location.getNearbyEntitiesByType(@Nullable Class<? extends Entity> clazz,
double xRadius,
double yRadius,
double zRadius,
@Nullable Predicate<T> predicate)
Gets all nearby entities of the specified type, within the specified radius (bounding box)
|
default <T extends Entity> |
World.getNearbyEntitiesByType(@Nullable Class<? extends Entity> clazz,
@NotNull Location loc,
double xRadius,
double yRadius,
double zRadius,
@Nullable Predicate<T> predicate)
Gets all nearby entities of the specified type, within the specified radius (bounding box)
|
<T extends Entity> |
Location.getNearbyEntitiesByType(@Nullable Class<? extends T> clazz,
double radius)
Gets all nearby entities of the specified type, within the specified radius (bounding box)
|
<T extends Entity> |
Location.getNearbyEntitiesByType(@Nullable Class<? extends T> clazz,
double xzRadius,
double yRadius)
Gets all nearby entities of the specified type, within the specified radius, with x and x radius matching (bounding box)
|
<T extends Entity> |
Location.getNearbyEntitiesByType(@Nullable Class<? extends T> clazz,
double xRadius,
double yRadius,
double zRadius)
Gets all nearby entities of the specified type, within the specified radius (bounding box)
|
<T extends Entity> |
Location.getNearbyEntitiesByType(@Nullable Class<? extends T> clazz,
double xzRadius,
double yRadius,
@Nullable Predicate<T> predicate)
Gets all nearby entities of the specified type, within the specified radius, with x and x radius matching (bounding box)
|
<T extends Entity> |
Location.getNearbyEntitiesByType(@Nullable Class<? extends T> clazz,
double radius,
@Nullable Predicate<T> predicate)
Gets all nearby entities of the specified type, within the specified radius (bounding box)
|
default <T extends Entity> |
World.getNearbyEntitiesByType(@Nullable Class<? extends T> clazz,
@NotNull Location loc,
double radius)
Gets all nearby entities of the specified type, within the specified radius (bounding box)
|
default <T extends Entity> |
World.getNearbyEntitiesByType(@Nullable Class<? extends T> clazz,
@NotNull Location loc,
double xzRadius,
double yRadius)
Gets all nearby entities of the specified type, within the specified radius, with x and x radius matching (bounding box)
|
default <T extends Entity> |
World.getNearbyEntitiesByType(@Nullable Class<? extends T> clazz,
@NotNull Location loc,
double xRadius,
double yRadius,
double zRadius)
Gets all nearby entities of the specified type, within the specified radius (bounding box)
|
default <T extends Entity> |
World.getNearbyEntitiesByType(@Nullable Class<? extends T> clazz,
@NotNull Location loc,
double xzRadius,
double yRadius,
@Nullable Predicate<T> predicate)
Gets all nearby entities of the specified type, within the specified radius, with x and x radius matching (bounding box)
|
default <T extends Entity> |
World.getNearbyEntitiesByType(@Nullable Class<? extends T> clazz,
@NotNull Location loc,
double radius,
@Nullable Predicate<T> predicate)
Gets all nearby entities of the specified type, within the specified radius (bounding box)
|
<T extends Entity> |
World.spawn(@NotNull Location location,
@NotNull Class<T> clazz)
Spawn an entity of a specific class at the given
Location |
default <T extends Entity> |
World.spawn(@NotNull Location location,
@NotNull Class<T> clazz,
@Nullable 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. |
<T extends Entity> |
World.spawn(@NotNull Location location,
@NotNull Class<T> clazz,
@Nullable Consumer<T> function,
CreatureSpawnEvent.SpawnReason reason) |
default <T extends Entity> |
World.spawn(@NotNull Location location,
@NotNull Class<T> clazz,
CreatureSpawnEvent.SpawnReason reason) |
default <T extends Entity> |
World.spawn(@NotNull Location location,
@NotNull Class<T> clazz,
CreatureSpawnEvent.SpawnReason reason,
@Nullable Consumer<T> function) |
Modifier and Type | Method and Description |
---|---|
@NotNull Entity[] |
Chunk.getEntities()
Get a list of all entities in the chunk.
|
@Nullable Entity |
World.getEntity(@NotNull UUID uuid)
Gets an entity in this world by its UUID
|
static @Nullable Entity |
Bukkit.getEntity(@NotNull UUID uuid)
Gets an entity on the server by its UUID
|
@Nullable Entity |
Server.getEntity(@NotNull UUID uuid)
Gets an entity on the server by its UUID
|
@NotNull Entity |
World.spawnEntity(@NotNull Location loc,
@NotNull EntityType type)
Creates a entity at the given
Location |
default @NotNull Entity |
World.spawnEntity(@NotNull Location loc,
@NotNull EntityType type,
CreatureSpawnEvent.SpawnReason reason) |
default @NotNull Entity |
World.spawnEntity(@NotNull Location loc,
@NotNull EntityType type,
CreatureSpawnEvent.SpawnReason reason,
@Nullable Consumer<Entity> function) |
Modifier and Type | Method and Description |
---|---|
boolean |
World.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.
|
default boolean |
World.createExplosion(@NotNull Entity source,
float power)
Creates explosion at given entities location with given power and optionally
setting blocks on fire, with the specified entity as the source.
|
boolean |
Location.createExplosion(@Nullable Entity source,
float power)
Creates explosion at this location with given power, with the specified entity as the source.
|
default boolean |
World.createExplosion(@NotNull Entity source,
float power,
boolean setFire)
Creates explosion at given entities location with given power and optionally
setting blocks on fire, with the specified entity as the source.
|
boolean |
Location.createExplosion(@Nullable Entity source,
float power,
boolean setFire)
Creates explosion at this location with given power and optionally
setting blocks on fire, with the specified entity as the source.
|
default boolean |
World.createExplosion(@NotNull Entity source,
float power,
boolean setFire,
boolean breakBlocks)
Creates explosion at given entities location with given power and optionally
setting blocks on fire, with the specified entity as the source.
|
boolean |
Location.createExplosion(@NotNull Entity source,
float power,
boolean setFire,
boolean breakBlocks)
Creates explosion at this location with given power and optionally
setting blocks on fire, with the specified entity as the source.
|
default boolean |
World.createExplosion(@Nullable Entity source,
@NotNull Location loc,
float power)
Creates explosion at given location with given power, with the specified entity as the source.
|
default boolean |
World.createExplosion(@Nullable Entity source,
@NotNull Location loc,
float power,
boolean setFire)
Creates explosion at given location with given power and optionally
setting blocks on fire, with the specified entity as the source.
|
boolean |
World.createExplosion(@Nullable Entity source,
@NotNull Location loc,
float power,
boolean setFire,
boolean breakBlocks)
Creates explosion at given location with given power and optionally
setting blocks on fire, with the specified entity as the source.
|
boolean |
World.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.
|
Modifier and Type | Interface and Description |
---|---|
interface |
EntityBlockStorage<T extends Entity>
Represents a captured state of a block which stores entities.
|
Modifier and Type | Method and 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
|
Modifier and Type | Interface and Description |
---|---|
interface |
AbstractArrow
Represents an arrow.
|
interface |
AbstractHorse
Represents a Horse-like creature.
|
interface |
AbstractVillager
Represents a villager NPC
|
interface |
Ageable
Represents an entity that can age.
|
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 |
interface |
Bat
Represents a Bat
|
interface |
Bee
Represents a Bee.
|
interface |
Blaze
Represents a Blaze monster
|
interface |
Boat
Represents a boat entity.
|
interface |
Boss
Represents the Boss Entity.
|
interface |
Breedable
Represents an entity that can age and breed.
|
interface |
Cat
Meow.
|
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 |
Fox
What does the fox say?
|
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 |
Hoglin
Represents a Hoglin.
|
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 a dropped 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
Deprecated.
lingering status depends on only on the potion item.
|
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 |
Panda
Panda entity.
|
interface |
Parrot
Represents a Parrot.
|
interface |
Phantom
Represents a phantom.
|
interface |
Pig
Represents a Pig.
|
interface |
Piglin
Represents a Piglin.
|
interface |
PiglinAbstract
Piglin / Piglin Brute.
|
interface |
PiglinBrute
Represents a Piglin Brute.
|
interface |
PigZombie
Represents a Pig Zombie.
|
interface |
Pillager
Illager entity.
|
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 |
Raider |
interface |
Ravager
Illager beast.
|
interface |
Salmon
Represents a salmon fish.
|
interface |
Sheep
Represents a Sheep.
|
interface |
Shulker |
interface |
ShulkerBullet |
interface |
Silverfish
Represents a Silverfish.
|
interface |
SizedFireball
Represents a sized fireball.
|
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
Deprecated.
splash status depends on only on the potion item.
|
interface |
Squid
Represents a Squid.
|
interface |
Steerable
Represents an entity which may be saddled, ridden and steered using an item.
|
interface |
Stray
Represents a Stray - variant of
Skeleton . |
interface |
Strider
Represents a Strider.
|
interface |
Tameable |
interface |
ThrowableProjectile |
interface |
ThrownExpBottle
Represents a thrown Experience bottle.
|
interface |
ThrownPotion
Represents a thrown potion bottle
|
interface |
TippedArrow
Deprecated.
tipped status depends only on base potion type not being
UNCRAFTABLE and effects being empty.
|
interface |
TNTPrimed
Represents a Primed TNT.
|
interface |
TraderLlama
Represents a trader Llama.
|
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 |
WanderingTrader
Represents a wandering trader NPC
|
interface |
WaterMob
Represents a Water Mob
|
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 |
Zoglin
Represents a Zoglin.
|
interface |
Zombie
Represents a Zombie.
|
interface |
ZombieHorse
Represents a ZombieHorse - variant of
AbstractHorse . |
interface |
ZombieVillager
|
Modifier and Type | Method and Description |
---|---|
@Nullable Entity |
FishHook.getHookedEntity()
Get the entity hooked by this fish hook.
|
@NotNull Entity |
LivingEntity.getLeashHolder()
Gets the entity that is currently leading this entity.
|
@Nullable Entity |
Entity.getPassenger()
Deprecated.
entities may have multiple passengers, use
getPassengers() |
@Nullable Entity |
HumanEntity.getShoulderEntityLeft()
Deprecated.
There are currently no well defined semantics regarding
serialized entities in Bukkit. Use with care.
|
@Nullable Entity |
HumanEntity.getShoulderEntityRight()
Deprecated.
There are currently no well defined semantics regarding
serialized entities in Bukkit. Use with care.
|
@Nullable Entity |
TNTPrimed.getSource()
Gets the source of this primed TNT.
|
@Nullable Entity |
Player.getSpectatorTarget()
Gets the entity which is followed by the camera when in
GameMode.SPECTATOR . |
@Nullable Entity |
ShulkerBullet.getTarget()
Retrieve the target of this bullet.
|
default @Nullable Entity |
LivingEntity.getTargetEntity(int maxDistance)
Gets information about the entity being targeted
|
@Nullable Entity |
LivingEntity.getTargetEntity(int maxDistance,
boolean ignoreBlocks)
Gets information about the entity being targeted
|
@Nullable Entity |
Entity.getVehicle()
Get the vehicle that this player is inside.
|
@Nullable Entity |
HumanEntity.releaseLeftShoulderEntity()
If there is an Entity on this entities left shoulder, it will be released to the world and returned.
|
@Nullable Entity |
HumanEntity.releaseRightShoulderEntity()
If there is an Entity on this entities left shoulder, it will be released to the world and returned.
|
Modifier and Type | Method and Description |
---|---|
boolean |
Entity.addPassenger(@NotNull Entity passenger)
Add a passenger to the vehicle.
|
void |
LivingEntity.attack(@NotNull Entity target)
Makes this entity attack the given entity with a melee attack.
|
void |
Damageable.damage(double amount,
@Nullable Entity source)
Deals the given amount of damage to this entity, from a specified
entity.
|
void |
Damageable.damage(double amount,
@Nullable Entity source,
EntityDamageEvent.DamageCause cause)
Deals the given amount of damage to this entity, from a specified entity,
with a specified cause.
|
boolean |
LivingEntity.hasLineOfSight(@NotNull Entity other)
Checks whether the living entity has block line of sight to another.
|
boolean |
Entity.removePassenger(@NotNull Entity passenger)
Remove a passenger from the vehicle.
|
void |
FishHook.setHookedEntity(@Nullable Entity entity)
Set the entity hooked by this fish hook.
|
boolean |
LivingEntity.setLeashHolder(@Nullable Entity holder)
Sets the leash on this entity to be held by the supplied entity.
|
boolean |
Entity.setPassenger(@NotNull Entity passenger)
Deprecated.
entities may have multiple passengers, use
addPassenger(org.bukkit.entity.Entity) |
void |
HumanEntity.setShoulderEntityLeft(@Nullable Entity entity)
Deprecated.
There are currently no well defined semantics regarding
serialized entities in Bukkit. Use with care.
|
void |
HumanEntity.setShoulderEntityRight(@Nullable Entity entity)
Deprecated.
There are currently no well defined semantics regarding
serialized entities in Bukkit. Use with care.
|
void |
TNTPrimed.setSource(@Nullable Entity source)
Sets the source of this primed TNT.
|
void |
Player.setSpectatorTarget(@Nullable Entity entity)
Sets the entity which is followed by the camera when in
GameMode.SPECTATOR . |
void |
ShulkerBullet.setTarget(@Nullable Entity target)
Sets the target of this bullet
|
boolean |
Entity.teleport(@NotNull Entity destination)
Teleports this entity to the target Entity.
|
boolean |
Entity.teleport(@NotNull Entity destination,
@NotNull PlayerTeleportEvent.TeleportCause cause)
Teleports this entity to the target Entity.
|
Modifier and Type | Interface and 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 and Description |
---|---|
@Nullable Entity |
CauldronLevelChangeEvent.getEntity()
Get entity which did this.
|
@NotNull Entity |
EntityBlockFormEvent.getEntity()
Get the entity that formed the block.
|
@NotNull Entity |
BlockShearEntityEvent.getEntity()
Gets the entity that was sheared.
|
@Nullable Entity |
BlockIgniteEvent.getIgnitingEntity()
Gets the entity who ignited this block
|
Constructor and Description |
---|
BlockIgniteEvent(@NotNull Block theBlock,
@NotNull BlockIgniteEvent.IgniteCause cause,
@Nullable 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) |
Modifier and Type | Field and Description |
---|---|
protected Entity |
EntityEvent.entity |
Modifier and Type | Method and Description |
---|---|
@NotNull Entity |
EntityCombustByEntityEvent.getCombuster()
Get the entity that caused the combustion event.
|
@NotNull Entity |
EntityDamageByEntityEvent.getDamager()
Returns the entity that damaged the defender.
|
@NotNull Entity |
EntityEvent.getEntity()
Returns the Entity involved in this event
|
@NotNull Entity |
PlayerLeashEntityEvent.getEntity()
Returns the entity being leashed.
|
@Nullable Entity |
ProjectileHitEvent.getHitEntity()
Gets the entity that was hit, if it was an entity that was hit.
|
@NotNull Entity |
PlayerLeashEntityEvent.getLeashHolder()
Returns the entity that is holding the leash.
|
@NotNull Entity |
EntityShootBowEvent.getProjectile()
Gets the projectile which will be launched by this event
|
@Nullable Entity |
PigZombieAngerEvent.getTarget()
Gets the entity (if any) which triggered this anger update.
|
@Nullable Entity |
EntityTargetEvent.getTarget()
Get the entity that this is targeting.
|
@NotNull Entity |
EntityTransformEvent.getTransformedEntity()
Gets the entity that the original entity was transformed to.
|
Modifier and Type | Method and Description |
---|---|
void |
EntityShootBowEvent.setProjectile(@NotNull Entity projectile)
Replaces the projectile which will be launched
|
void |
EntityTargetLivingEntityEvent.setTarget(@Nullable Entity target)
Set the Entity that you want the mob to target.
|
void |
EntityTargetEvent.setTarget(@Nullable Entity target)
Set the entity that you want the mob to target instead.
|
Modifier and Type | Method and Description |
---|---|
@Nullable Entity |
HangingBreakByEntityEvent.getRemover()
Gets the entity that removed the hanging entity.
|
Constructor and Description |
---|
HangingBreakByEntityEvent(@NotNull Hanging hanging,
@Nullable Entity remover) |
HangingBreakByEntityEvent(@NotNull Hanging hanging,
@Nullable Entity remover,
HangingBreakEvent.RemoveCause cause) |
Modifier and Type | Field and Description |
---|---|
protected Entity |
PlayerInteractEntityEvent.clickedEntity |
Modifier and Type | Method and Description |
---|---|
@Nullable Entity |
PlayerFishEvent.getCaught()
Gets the entity caught by the player.
|
@NotNull Entity |
PlayerShearEntityEvent.getEntity()
Gets the entity the player is shearing
|
@NotNull Entity |
PlayerInteractEntityEvent.getRightClicked()
Gets the entity that was right-clicked by the player.
|
@Nullable Entity |
PlayerExpChangeEvent.getSource()
Get the source that provided the experience.
|
Modifier and Type | Method and Description |
---|---|
@Nullable Entity |
VehicleDamageEvent.getAttacker()
Gets the Entity that is attacking the vehicle
|
@Nullable Entity |
VehicleDestroyEvent.getAttacker()
Gets the Entity that has destroyed the vehicle, potentially null
|
@NotNull Entity |
VehicleEnterEvent.getEntered()
Gets the Entity that entered the vehicle.
|
@NotNull Entity |
VehicleEntityCollisionEvent.getEntity() |
Constructor and 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) |
Modifier and Type | Method and Description |
---|---|
@Nullable Entity |
LootGenerateEvent.getEntity()
Get the entity used as context for loot generation (if applicable).
|
@Nullable Entity |
PortalCreateEvent.getEntity()
Returns the Entity that triggered this portal creation (if available)
|
Constructor and 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) |
Modifier and Type | Method and Description |
---|---|
@Nullable Entity |
EntityEquipment.getHolder()
Get the entity this EntityEquipment belongs to
|
Modifier and Type | Method and Description |
---|---|
Content |
ItemFactory.hoverContentOf(Entity entity)
Deprecated.
use
HoverEventSource.asHoverEvent() |
Content |
ItemFactory.hoverContentOf(Entity entity,
BaseComponent customName)
Deprecated.
|
Content |
ItemFactory.hoverContentOf(Entity entity,
BaseComponent[] customName)
Deprecated.
|
Content |
ItemFactory.hoverContentOf(Entity entity,
@Nullable String customName)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
@Nullable Entity |
LootContext.getLootedEntity()
Get the
Entity that was killed. |
Modifier and Type | Method and Description |
---|---|
@NotNull LootContext.Builder |
LootContext.Builder.lootedEntity(@Nullable Entity lootedEntity)
The entity that was killed.
|
Modifier and Type | Method and Description |
---|---|
@Nullable Entity |
RayTraceResult.getHitEntity()
Gets the hit entity.
|
Constructor and Description |
---|
RayTraceResult(@NotNull Vector hitPosition,
@Nullable Entity hitEntity)
Creates a RayTraceResult.
|
RayTraceResult(@NotNull Vector hitPosition,
@Nullable Entity hitEntity,
@Nullable BlockFace hitBlockFace)
Creates a RayTraceResult.
|
Modifier and Type | Method and Description |
---|---|
@NotNull Entity |
EntityDismountEvent.getDismounted() |
@NotNull Entity |
EntityMountEvent.getMount() |
Constructor and Description |
---|
EntityDismountEvent(@NotNull Entity what,
@NotNull Entity dismounted) |
EntityDismountEvent(@NotNull Entity what,
@NotNull Entity dismounted) |
EntityDismountEvent(@NotNull Entity what,
@NotNull Entity dismounted,
boolean isCancellable) |
EntityDismountEvent(@NotNull Entity what,
@NotNull Entity dismounted,
boolean isCancellable) |
EntityMountEvent(@NotNull Entity what,
@NotNull Entity mount) |
EntityMountEvent(@NotNull Entity what,
@NotNull Entity mount) |
Copyright © 2021. All rights reserved.