Package | Description |
---|---|
com.destroystokyo.paper.entity | |
com.destroystokyo.paper.event.entity | |
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.event.block | |
org.bukkit.event.entity | |
org.bukkit.event.vehicle |
Events relating to vehicular entities . |
org.bukkit.potion |
Classes to represent various
potion
properties and manipulation. |
org.bukkit.util |
Multi and single purpose classes to facilitate various programmatic
concepts.
|
Modifier and Type | Interface | Description |
---|---|---|
interface |
RangedEntity |
Modifier and Type | Method | Description |
---|---|---|
@Nullable Pathfinder.PathResult |
Pathfinder.findPath(@NotNull LivingEntity target) |
Calculates a destination for the Entity to navigate to to reach the target entity,
but does not set it as the current target.
|
default boolean |
Pathfinder.moveTo(@NotNull LivingEntity target) |
Calculates a destination for the Entity to navigate to to reach the target entity,
and sets it with default speed.
|
default boolean |
Pathfinder.moveTo(@NotNull LivingEntity target,
double speed) |
Calculates a destination for the Entity to navigate to to reach the target entity,
and sets it with specified speed.
|
void |
RangedEntity.rangedAttack(@NotNull LivingEntity target,
float charge) |
Attack the specified entity using a ranged attack.
|
Modifier and Type | Method | Description |
---|---|---|
@NotNull LivingEntity |
EntityJumpEvent.getEntity() |
|
@NotNull LivingEntity |
EntityKnockbackByEntityEvent.getEntity() |
|
@NotNull LivingEntity |
SlimeTargetLivingEntityEvent.getTarget() |
Get the targeted entity
|
@NotNull LivingEntity |
WitchThrowPotionEvent.getTarget() |
Modifier and Type | Method | Description |
---|---|---|
@Nullable Collection<LivingEntity> |
EnderDragonFireballHitEvent.getTargets() |
The living entities hit by fireball
May be null if no entities were hit
|
Constructor | Description |
---|---|
EntityJumpEvent(@NotNull LivingEntity entity) |
|
EntityKnockbackByEntityEvent(@NotNull LivingEntity entity,
@NotNull Entity hitBy,
float knockbackStrength,
@NotNull Vector acceleration) |
|
SlimeTargetLivingEntityEvent(@NotNull Slime slime,
@NotNull LivingEntity target) |
|
WitchThrowPotionEvent(@NotNull Witch witch,
@NotNull LivingEntity target,
@Nullable ItemStack potion) |
Constructor | Description |
---|---|
EnderDragonFireballHitEvent(@NotNull DragonFireball fireball,
@Nullable Collection<LivingEntity> targets,
@NotNull AreaEffectCloud areaEffectCloud) |
Modifier and Type | Method | Description |
---|---|---|
@NotNull List<LivingEntity> |
World.getLivingEntities() |
Get a list of all living entities in this World
|
@NotNull Collection<LivingEntity> |
Location.getNearbyLivingEntities(double radius) |
Gets nearby players within the specified radius (bounding box)
|
@NotNull Collection<LivingEntity> |
Location.getNearbyLivingEntities(double xzRadius,
double yRadius) |
Gets nearby players within the specified radius (bounding box)
|
@NotNull Collection<LivingEntity> |
Location.getNearbyLivingEntities(double xRadius,
double yRadius,
double zRadius) |
Gets nearby players within the specified radius (bounding box)
|
@NotNull Collection<LivingEntity> |
Location.getNearbyLivingEntities(double xRadius,
double yRadius,
double zRadius,
@Nullable Predicate<LivingEntity> predicate) |
Gets nearby players within the specified radius (bounding box)
|
@NotNull Collection<LivingEntity> |
Location.getNearbyLivingEntities(double xzRadius,
double yRadius,
@Nullable Predicate<LivingEntity> predicate) |
Gets nearby players within the specified radius (bounding box)
|
@NotNull Collection<LivingEntity> |
Location.getNearbyLivingEntities(double radius,
@Nullable Predicate<LivingEntity> predicate) |
Gets nearby players within the specified radius (bounding box)
|
default @NotNull Collection<LivingEntity> |
World.getNearbyLivingEntities(@NotNull Location loc,
double radius) |
Gets nearby players within the specified radius (bounding box)
|
default @NotNull Collection<LivingEntity> |
World.getNearbyLivingEntities(@NotNull Location loc,
double xzRadius,
double yRadius) |
Gets nearby players within the specified radius (bounding box)
|
default @NotNull Collection<LivingEntity> |
World.getNearbyLivingEntities(@NotNull Location loc,
double xRadius,
double yRadius,
double zRadius) |
Gets nearby players within the specified radius (bounding box)
|
default @NotNull Collection<LivingEntity> |
World.getNearbyLivingEntities(@NotNull Location loc,
double xRadius,
double yRadius,
double zRadius,
@Nullable Predicate<LivingEntity> predicate) |
Gets nearby players within the specified radius (bounding box)
|
default @NotNull Collection<LivingEntity> |
World.getNearbyLivingEntities(@NotNull Location loc,
double xzRadius,
double yRadius,
@Nullable Predicate<LivingEntity> predicate) |
Gets nearby players within the specified radius (bounding box)
|
default @NotNull Collection<LivingEntity> |
World.getNearbyLivingEntities(@NotNull Location loc,
double radius,
@Nullable Predicate<LivingEntity> predicate) |
Gets nearby players within the specified radius (bounding box)
|
Modifier and Type | Method | Description |
---|---|---|
@NotNull Collection<LivingEntity> |
Location.getNearbyLivingEntities(double xRadius,
double yRadius,
double zRadius,
@Nullable Predicate<LivingEntity> predicate) |
Gets nearby players within the specified radius (bounding box)
|
@NotNull Collection<LivingEntity> |
Location.getNearbyLivingEntities(double xzRadius,
double yRadius,
@Nullable Predicate<LivingEntity> predicate) |
Gets nearby players within the specified radius (bounding box)
|
@NotNull Collection<LivingEntity> |
Location.getNearbyLivingEntities(double radius,
@Nullable Predicate<LivingEntity> predicate) |
Gets nearby players within the specified radius (bounding box)
|
default @NotNull Collection<LivingEntity> |
World.getNearbyLivingEntities(@NotNull Location loc,
double xRadius,
double yRadius,
double zRadius,
@Nullable Predicate<LivingEntity> predicate) |
Gets nearby players within the specified radius (bounding box)
|
default @NotNull Collection<LivingEntity> |
World.getNearbyLivingEntities(@NotNull Location loc,
double xzRadius,
double yRadius,
@Nullable Predicate<LivingEntity> predicate) |
Gets nearby players within the specified radius (bounding box)
|
default @NotNull Collection<LivingEntity> |
World.getNearbyLivingEntities(@NotNull Location loc,
double radius,
@Nullable Predicate<LivingEntity> predicate) |
Gets nearby players within the specified radius (bounding box)
|
Modifier and Type | Method | Description |
---|---|---|
@NotNull Collection<LivingEntity> |
Beacon.getEntitiesInRange() |
Returns the list of players within the beacon's range of effect.
|
Modifier and Type | Method | Description |
---|---|---|
void |
Structure.setAuthor(@NotNull LivingEntity livingEntity) |
Set the name of whoever created this structure using a
LivingEntity . |
Modifier and Type | Interface | Description |
---|---|---|
interface |
AbstractHorse |
Represents a Horse-like creature.
|
interface |
AbstractVillager |
Represents a villager NPC
|
interface |
Ageable |
Represents an entity that can age and breed.
|
interface |
Ambient |
Represents an ambient mob
|
interface |
Animals |
Represents an Animal.
|
interface |
ArmorStand |
|
interface |
Bat |
Represents a Bat
|
interface |
Bee |
Represents a Bee.
|
interface |
Blaze |
Represents a Blaze monster
|
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 |
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 |
Dolphin |
|
interface |
Donkey |
Represents a Donkey - variant of
ChestedHorse . |
interface |
Drowned |
Drowned zombie.
|
interface |
ElderGuardian |
Represents an ElderGuardian - variant of
Guardian . |
interface |
EnderDragon |
Represents an Ender Dragon
|
interface |
Enderman |
Represents an Enderman.
|
interface |
Endermite |
|
interface |
Evoker |
Represents an Evoker "Illager".
|
interface |
Fish |
Represents a fish entity.
|
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 |
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 |
Llama |
Represents a Llama.
|
interface |
MagmaCube |
Represents a MagmaCube.
|
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 |
Panda |
Panda entity.
|
interface |
Parrot |
Represents a Parrot.
|
interface |
Phantom |
Represents a phantom.
|
interface |
Pig |
Represents a Pig.
|
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 |
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 |
Silverfish |
Represents a Silverfish.
|
interface |
Skeleton |
Represents a Skeleton.
|
interface |
SkeletonHorse |
Represents a SkeletonHorse - variant of
AbstractHorse . |
interface |
Slime |
Represents a Slime.
|
interface |
Snowman |
Represents a snowman entity
|
interface |
Spellcaster |
Represents a spell casting "Illager".
|
interface |
Spider |
Represents a Spider.
|
interface |
Squid |
Represents a Squid.
|
interface |
Stray |
Represents a Stray - variant of
Skeleton . |
interface |
Tameable |
|
interface |
TraderLlama |
Represents a trader Llama.
|
interface |
TropicalFish |
Tropical fish.
|
interface |
Turtle |
Represents a turtle.
|
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 |
Wolf |
Represents a Wolf
|
interface |
Zombie |
Represents a Zombie.
|
interface |
ZombieHorse |
Represents a ZombieHorse - variant of
AbstractHorse . |
interface |
ZombieVillager |
Modifier and Type | Method | Description |
---|---|---|
@Nullable LivingEntity |
Firework.getBoostedEntity() |
If this firework is boosting an entity, return it
|
@Nullable LivingEntity |
EvokerFangs.getOwner() |
Gets the
LivingEntity which summoned the fangs. |
@Nullable LivingEntity |
Mob.getTarget() |
Gets the current target of this Mob
|
Modifier and Type | Method | Description |
---|---|---|
void |
EvokerFangs.setOwner(@Nullable LivingEntity owner) |
Sets the
LivingEntity which summoned the fangs. |
void |
Mob.setTarget(@Nullable LivingEntity target) |
Instructs this Mob to set the specified LivingEntity as its target.
|
Modifier and Type | Method | Description |
---|---|---|
@NotNull LivingEntity |
BlockDispenseArmorEvent.getTargetEntity() |
Get the living entity on which the armor was dispensed.
|
Constructor | Description |
---|---|
BlockDispenseArmorEvent(@NotNull Block block,
@NotNull ItemStack dispensed,
@NotNull LivingEntity target) |
Modifier and Type | Method | Description |
---|---|---|
@Nullable LivingEntity |
EntityBreedEvent.getBreeder() |
Gets the Entity responsible for breeding.
|
@NotNull LivingEntity |
CreatureSpawnEvent.getEntity() |
|
@NotNull LivingEntity |
EntityBreakDoorEvent.getEntity() |
|
@NotNull LivingEntity |
EntityBreedEvent.getEntity() |
|
@NotNull LivingEntity |
EntityCreatePortalEvent.getEntity() |
Deprecated.
|
@NotNull LivingEntity |
EntityDeathEvent.getEntity() |
|
@NotNull LivingEntity |
EntityPickupItemEvent.getEntity() |
|
@NotNull LivingEntity |
EntityResurrectEvent.getEntity() |
|
@NotNull LivingEntity |
EntityShootBowEvent.getEntity() |
|
@NotNull LivingEntity |
EntityTameEvent.getEntity() |
|
@NotNull LivingEntity |
EntityBreedEvent.getFather() |
Gets the other parent of the newly born entity.
|
@NotNull LivingEntity |
EntityBreedEvent.getMother() |
Gets the parent creating this entity.
|
@Nullable LivingEntity |
EntityTargetLivingEntityEvent.getTarget() |
Modifier and Type | Method | Description |
---|---|---|
@NotNull List<LivingEntity> |
AreaEffectCloudApplyEvent.getAffectedEntities() |
Retrieves a mutable list of the effected entities
|
@NotNull Collection<LivingEntity> |
PotionSplashEvent.getAffectedEntities() |
Retrieves a list of all effected entities
|
Modifier and Type | Method | Description |
---|---|---|
double |
PotionSplashEvent.getIntensity(@NotNull LivingEntity entity) |
Gets the intensity of the potion's effects for given entity; This
depends on the distance to the impact center
|
void |
PotionSplashEvent.setIntensity(@NotNull LivingEntity entity,
double intensity) |
Overwrites the intensity for a given entity
|
Constructor | Description |
---|---|
CreatureSpawnEvent(@NotNull LivingEntity spawnee,
@NotNull CreatureSpawnEvent.SpawnReason spawnReason) |
|
EntityBreakDoorEvent(@NotNull LivingEntity entity,
@NotNull Block targetBlock) |
|
EntityBreedEvent(@NotNull LivingEntity child,
@NotNull LivingEntity mother,
@NotNull LivingEntity father,
@Nullable LivingEntity breeder,
@Nullable ItemStack bredWith,
int experience) |
|
EntityCreatePortalEvent(@NotNull LivingEntity what,
@NotNull List<BlockState> blocks,
@NotNull PortalType type) |
Deprecated.
|
EntityDeathEvent(@NotNull LivingEntity entity,
@NotNull List<ItemStack> drops) |
|
EntityDeathEvent(@NotNull LivingEntity what,
@NotNull List<ItemStack> drops,
int droppedExp) |
|
EntityPickupItemEvent(@NotNull LivingEntity entity,
@NotNull Item item,
int remaining) |
|
EntityPotionEffectEvent(@NotNull LivingEntity livingEntity,
@Nullable PotionEffect oldEffect,
@Nullable PotionEffect newEffect,
@NotNull EntityPotionEffectEvent.Cause cause,
@NotNull EntityPotionEffectEvent.Action action,
boolean override) |
|
EntityResurrectEvent(@NotNull LivingEntity what) |
|
EntityShootBowEvent(@NotNull LivingEntity shooter,
@Nullable ItemStack bow,
@NotNull Entity projectile,
float force) |
Deprecated.
|
EntityShootBowEvent(@NotNull LivingEntity shooter,
@Nullable ItemStack bow,
@NotNull ItemStack arrowItem,
@NotNull Entity projectile,
float force) |
|
EntityTameEvent(@NotNull LivingEntity entity,
@NotNull AnimalTamer owner) |
|
EntityTargetLivingEntityEvent(@NotNull Entity entity,
@Nullable LivingEntity target,
@Nullable EntityTargetEvent.TargetReason reason) |
|
EntityToggleGlideEvent(@NotNull LivingEntity who,
boolean isGliding) |
|
EntityToggleSwimEvent(@NotNull LivingEntity who,
boolean isSwimming) |
Constructor | Description |
---|---|
AreaEffectCloudApplyEvent(@NotNull AreaEffectCloud entity,
@NotNull List<LivingEntity> affectedEntities) |
|
PotionSplashEvent(@NotNull ThrownPotion potion,
@NotNull Map<LivingEntity,Double> affectedEntities) |
Modifier and Type | Method | Description |
---|---|---|
@NotNull LivingEntity |
VehicleExitEvent.getExited() |
Get the living entity that exited the vehicle.
|
Constructor | Description |
---|---|
VehicleExitEvent(@NotNull Vehicle vehicle,
@NotNull LivingEntity exited) |
|
VehicleExitEvent(@NotNull Vehicle vehicle,
@NotNull LivingEntity exited,
boolean isCancellable) |
Modifier and Type | Method | Description |
---|---|---|
void |
Potion.apply(@NotNull LivingEntity to) |
Deprecated.
Applies the effects that would be applied by this potion to the given
LivingEntity . |
boolean |
PotionEffect.apply(@NotNull LivingEntity entity) |
Attempts to add the effect represented by this object to the given
LivingEntity . |
Constructor | Description |
---|---|
BlockIterator(@NotNull LivingEntity entity) |
Constructs the BlockIterator.
|
BlockIterator(@NotNull LivingEntity entity,
int maxDistance) |
Constructs the BlockIterator.
|
Copyright © 2020. All rights reserved.