Class GlowLivingEntity
- All Implemented Interfaces:
 net.kyori.adventure.audience.Audience,net.kyori.adventure.text.event.HoverEventSource<net.kyori.adventure.text.event.HoverEvent.ShowEntity>,org.bukkit.attribute.Attributable,org.bukkit.command.CommandSender,org.bukkit.entity.Damageable,org.bukkit.entity.Entity,org.bukkit.entity.LivingEntity,org.bukkit.metadata.Metadatable,org.bukkit.Nameable,org.bukkit.permissions.Permissible,org.bukkit.permissions.ServerOperator,org.bukkit.persistence.PersistentDataHolder,org.bukkit.projectiles.ProjectileSource
- Direct Known Subclasses:
 GlowArmorStand,GlowHumanEntity,GlowMob
Player or Monster.- 
Nested Class Summary
Nested classes/interfaces inherited from interface org.bukkit.entity.Entity
org.bukkit.entity.Entity.Spigot - 
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intThe LivingEntity's number of ticks since death.protected doubleThe entity's health.protected doubleThe entity's max health.protected org.bukkit.util.VectorThe entity's movement as a unit vector, applied each tick according to the entity's speed.protected doubleThe speed multiplier of the entity.protected final TaskManagerThe entity's AI task manager.Fields inherited from class net.glowstone.entity.GlowEntity
active, airDrag, applyDragBeforeAccel, boundingBox, ENTITY_ID_NOBODY, entityId, gravityAccel, liquidDrag, location, metadata, passengerChanged, previousLocation, removed, server, slipMultiplier, teleported, ticksLived, vehicle, velocity, velocityChanged, world, worldLock - 
Constructor Summary
ConstructorsModifierConstructorDescriptionGlowLivingEntity(org.bukkit.Location location) Creates a mob within the specified world.protectedGlowLivingEntity(org.bukkit.Location location, double maxHealth) Creates a mob within the specified world. - 
Method Summary
Modifier and TypeMethodDescriptionbooleanaddPotionEffect(org.bukkit.potion.PotionEffect effect) booleanaddPotionEffect(org.bukkit.potion.PotionEffect effect, boolean force) booleanaddPotionEffects(Collection<org.bukkit.potion.PotionEffect> effects) voidattack(@NotNull org.bukkit.entity.Entity entity) booleancanTakeDamage(org.bukkit.event.entity.EntityDamageEvent.DamageCause damageCause) Get whether this entity should take damage from the specified source.voidvoidList<com.flowpowered.network.Message>createUpdateMessage(GlowSession session) Creates aMessagewhich can be sent to a client to update this entity.voiddamage(double amount, org.bukkit.entity.Entity source, @NotNull org.bukkit.event.entity.EntityDamageEvent.DamageCause cause) booleanentityInteract(GlowPlayer player, InteractEntityMessage message) doubleThe entity's absorption amount (the amount of health supplementing its max health).org.bukkit.inventory.ItemStackCollection<org.bukkit.potion.PotionEffect>protected intGet the minimal delay until the entity can produce an ambient sound.protected org.bukkit.SoundGet the ambient sound this entity makes randomly, or null for silence.intThe time in ticks until the next arrow leaves the entity's body.intThe number of arrows in an entity's body.intThe number of arrows stuck inside this entity.@Nullable org.bukkit.attribute.AttributeInstancegetAttribute(@NotNull org.bukkit.attribute.Attribute attribute) The LivingEntity's AttributeManager.boolean@NotNull org.bukkit.entity.EntityCategoryprotected org.bukkit.SoundGet the death sound of this entity, or null for silence.intThe LivingEntity's number of ticks since death.org.bukkit.inventory.EntityEquipmentMonitor for the equipment of this entity.doubledoublegetEyeHeight(boolean ignoreSneaking) @NotNull org.bukkit.LocationintfloatThe head rotation of the living entity, if applicable.doubleThe entity's health.floatThe entity's hurt direction (angle).protected org.bukkit.SoundGet the hurt sound of this entity, or null for silence.intorg.bukkit.entity.PlayerThe player that killed this entity, or null if not killed by a player.doubleThe magnitude of the last damage the entity took.org.bukkit.entity.EntityThe last entity which damaged this living entity.@NotNull List<org.bukkit.block.Block>getLastTwoTargetBlocks(Set<org.bukkit.Material> materials, int maxDistance) @NotNull List<org.bukkit.block.Block>getLineOfSight(Set<org.bukkit.Material> transparent, int maxDistance) doubleintThe maximum amount of air the entity can hold.intThe default length of the invincibility period.<T> TgetMemory(@NotNull org.bukkit.entity.memory.MemoryKey<T> memoryKey) org.bukkit.util.VectorThe entity's movement as a unit vector, applied each tick according to the entity's speed.intThe number of ticks remaining in the invincibility period.intThe tick that the entity got hit by a player.org.bukkit.potion.PotionEffectgetPotionEffect(org.bukkit.potion.PotionEffectType potionEffectType) intHow long the entity has until it runs out of air.booleanintprotected floatThe pitch of the sounds this entity makes.protected floatThe volume of the sounds this entity makes.doublegetSpeed()The speed multiplier of the entity.getState()The entity's current AI state.@Nullable org.bukkit.block.BlockgetTargetBlock(int maxDistance, com.destroystokyo.paper.block.TargetBlockInfo.FluidMode fluidMode) @NotNull org.bukkit.block.BlockgetTargetBlock(Set<org.bukkit.Material> materials, int maxDistance) @Nullable org.bukkit.block.BlockgetTargetBlockExact(int maxDistance) @Nullable org.bukkit.block.BlockgetTargetBlockExact(int maxDistance, @NotNull org.bukkit.FluidCollisionMode fluidCollisionMode) @Nullable org.bukkit.block.BlockFacegetTargetBlockFace(int maxDistance, com.destroystokyo.paper.block.TargetBlockInfo.FluidMode fluidMode) @Nullable com.destroystokyo.paper.block.TargetBlockInfogetTargetBlockInfo(int maxDistance, com.destroystokyo.paper.block.TargetBlockInfo.FluidMode fluidMode) @Nullable org.bukkit.entity.EntitygetTargetEntity(int maxDistance, boolean ignoreBlocks) @Nullable com.destroystokyo.paper.entity.TargetEntityInfogetTargetEntityInfo(int maxDistance, boolean ignoreBlocks) The entity's AI task manager.protected org.bukkit.util.VectorbooleanhasAI()booleanhasLineOfSight(@NotNull org.bukkit.entity.Entity other) booleanhasPotionEffect(org.bukkit.potion.PotionEffectType type) booleanGet whether of not this entity is an arthropod.booleanWhether entities can collide with this entity.booleanWhether the entity can automatically glide when falling with an Elytra equipped.booleanbooleanbooleanWhether the entity is invisible.booleanbooleanbooleanbooleanbooleanisUndead()Get whether or not this entity is undead.booleanReturns whether the entity's eye location is within a solid block.protected voidjump()<T extends org.bukkit.entity.Projectile>
TlaunchProjectile(@NotNull Class<? extends T> type) <T extends org.bukkit.entity.Projectile>
TlaunchProjectile(@NotNull Class<? extends T> type, org.bukkit.util.Vector vector) protected <T extends org.bukkit.entity.Projectile>
TlaunchProjectile(Class<? extends T> type, org.bukkit.Location location, org.bukkit.util.Vector originalVector, float pitchOffset, float velocity) Launches a projectile from this entity in the horizontal direction it is facing, relative to the given velocity vector.<T extends org.bukkit.entity.Projectile>
TlaunchProjectile(Class<? extends T> type, org.bukkit.util.Vector vector, float offset, float speed) Launches a projectile from this entity.voidplayAnimation(@NotNull org.bukkit.EntityAnimation animation) voidplayPickupItemAnimation(@NotNull org.bukkit.entity.Item item, int quantity) voidpulse()Called every game cycle.protected void@Nullable org.bukkit.util.RayTraceResultrayTraceBlocks(double maxDistance) @Nullable org.bukkit.util.RayTraceResultrayTraceBlocks(double maxDistance, @NotNull org.bukkit.FluidCollisionMode fluidCollisionMode) voidregisterAttribute(@NotNull org.bukkit.attribute.Attribute attribute) voidremovePotionEffect(org.bukkit.potion.PotionEffectType type) voidreset()Resets the previous location and other properties to their current value.voidvoidsetAbsorptionAmount(double absorptionAmount) The entity's absorption amount (the amount of health supplementing its max health).voidsetAI(boolean ai) voidsetArrowCooldown(int arrowCooldown) The time in ticks until the next arrow leaves the entity's body.voidsetArrowsInBody(int arrowsInBody) The number of arrows in an entity's body.voidsetArrowsStuck(int arrowsStuck) The number of arrows stuck inside this entity.voidsetCanPickupItems(boolean canPickupItems) Whether the (non-Player) entity can pick up armor and tools.voidsetCollidable(boolean collidable) Whether entities can collide with this entity.voidsetFallFlying(boolean fallFlying) Whether the entity can automatically glide when falling with an Elytra equipped.voidsetGliding(boolean gliding) voidsetHeadYaw(float headYaw) voidsetHealth(double health) voidsetHurtDirection(float hurtDirection) The entity's hurt direction (angle).voidsetInvisible(boolean invisible) Whether the entity is invisible.voidsetJumping(boolean jumping) voidsetKiller(org.bukkit.entity.Player killer) The player that killed this entity, or null if not killed by a player.voidsetLastDamage(double lastDamage) The magnitude of the last damage the entity took.voidsetLastDamager(org.bukkit.entity.Entity lastDamager) The last entity which damaged this living entity.voidsetMaxHealth(double health) voidsetMaximumAir(int ticks) voidsetMaximumNoDamageTicks(int maximumNoDamageTicks) The default length of the invincibility period.<T> voidsetMemory(@NotNull org.bukkit.entity.memory.MemoryKey<T> memoryKey, T t) voidsetMovement(org.bukkit.util.Vector movement) The entity's movement as a unit vector, applied each tick according to the entity's speed.voidsetNoDamageTicks(int noDamageTicks) The number of ticks remaining in the invincibility period.voidsetOnGround(boolean onGround) Sets the on-ground flag and clears fall distance.voidsetPlayerDamageTick(int playerDamageTick) The tick that the entity got hit by a player.voidsetRemainingAir(int ticks) voidsetRemoveWhenFarAway(boolean removeWhenFarAway) Whether the entity should be removed if it is too distant from players.voidsetShieldBlockingDelay(int delay) voidsetSpeed(double speed) The speed multiplier of the entity.voidSets the AI state.voidsetSwimming(boolean swimming) voidvoidbooleanUse "Totem of Undying" if equippedprotected voidMethods inherited from class net.glowstone.entity.GlowEntity
addAttachment, addAttachment, addAttachment, addAttachment, addPassenger, addScoreboardTag, collide, createAfterSpawnMessage, createSpawnMessage, customName, customName, damage, damage, damage, eject, equals, fromMobSpawner, getBoundingBox, getCardinalFacing, getChunk, getCustomName, getCustomTags, getDismountLocation, getEffectivePermissions, getEntityId, getEntitySpawnReason, getFacing, getFallDistance, getFireTicks, getGravityAccel, getHeight, getLastDamageCause, getLeashedEntities, getLeashHolder, getLocation, getLocation, getMaxFireTicks, getMetadata, getMetadata, getMountLocation, getName, getNearbyEntities, getOrigin, getPassenger, getPassengers, getPersistentDataContainer, getPistonMoveReaction, getPortalCooldown, getPose, getScoreboardTags, getServer, getTicksLived, getType, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, hasDefaultLandingBehavior, hasFriction, hasGravity, hashCode, hasMetadata, hasMoved, hasPermission, hasPermission, hasRotated, intersects, isCustomNameVisible, isDead, isEmpty, isGlowing, isInBubbleColumn, isInLava, isInMaterial, isInRain, isInsideVehicle, isInvulnerable, isInWater, isInWaterOrBubbleColumn, isInWaterOrRain, isInWaterOrRainOrBubbleColumn, isLeashed, isOnGround, isOp, isPermissionSet, isPermissionSet, isPersistent, isRemoved, isSilent, isTeleported, isTicking, isTouchingMaterial, isValid, isWithinDistance, isWithinDistance, leaveVehicle, playEffect, playEffectKnownAndSelf, recalculatePermissions, remove, removeAttachment, removeMetadata, removePassenger, removeScoreboardTag, sendMessage, sendMessage, sendMessage, sendMessage, setAirDrag, setApplyDragBeforeAccel, setBoundingBox, setCustomName, setCustomNameVisible, setFallDistance, setFireTicks, setFriction, setGlowing, setGravity, setGravityAccel, setInvulnerable, setLastDamageCause, setLeashHolder, setLeashHolderUniqueId, setLiquidDrag, setMetadata, setOp, setPassenger, setPersistent, setPortalCooldown, setRawLocation, setRawLocation, setRotation, setSilent, setSize, setTicksLived, setUniqueId, setVelocity, shouldSave, spigot, teleport, teleport, teleport, teleport, teleportToEnd, teleportToSpawn, toString, updateBoundingBoxMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.kyori.adventure.audience.Audience
clearTitle, hideBossBar, openBook, openBook, playSound, playSound, resetTitle, sendActionBar, sendActionBar, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendPlayerListFooter, sendPlayerListFooter, sendPlayerListHeader, sendPlayerListHeader, sendPlayerListHeaderAndFooter, sendPlayerListHeaderAndFooter, showBossBar, showTitle, stopSoundMethods inherited from interface org.bukkit.command.CommandSender
getName, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessageMethods inherited from interface org.bukkit.entity.Damageable
damage, damage, damageMethods inherited from interface org.bukkit.entity.Entity
addPassenger, addScoreboardTag, asHoverEvent, eject, fromMobSpawner, getBoundingBox, getChunk, getEntityId, getEntitySpawnReason, getFacing, getFallDistance, getFireTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getNearbyEntities, getOrigin, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getPose, getScoreboardTags, getServer, getTicksLived, getType, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, hasGravity, isCustomNameVisible, isDead, isEmpty, isGlowing, isInBubbleColumn, isInLava, isInRain, isInsideVehicle, isInvulnerable, isInWater, isInWaterOrBubbleColumn, isInWaterOrRain, isInWaterOrRainOrBubbleColumn, isOnGround, isPersistent, isSilent, isTicking, isValid, leaveVehicle, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setPassenger, setPersistent, setPortalCooldown, setRotation, setSilent, setTicksLived, setVelocity, spigot, teleport, teleport, teleport, teleport, teleportAsync, teleportAsyncMethods inherited from interface net.kyori.adventure.text.event.HoverEventSource
asHoverEventMethods inherited from interface org.bukkit.entity.LivingEntity
getLeashHolder, getTargetBlock, getTargetBlockFace, getTargetBlockInfo, getTargetEntity, getTargetEntityInfo, isLeashed, playPickupItemAnimation, setLeashHolderMethods inherited from interface org.bukkit.metadata.Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadataMethods inherited from interface org.bukkit.Nameable
customName, customName, getCustomName, setCustomNameMethods inherited from interface org.bukkit.permissions.Permissible
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachmentMethods inherited from interface org.bukkit.persistence.PersistentDataHolder
getPersistentDataContainerMethods inherited from interface org.bukkit.permissions.ServerOperator
isOp, setOp 
- 
Field Details
- 
taskManager
The entity's AI task manager. - 
health
protected double healthThe entity's health. - 
maxHealth
protected double maxHealthThe entity's max health. - 
deathTicks
protected int deathTicksThe LivingEntity's number of ticks since death. - 
movement
protected org.bukkit.util.Vector movementThe entity's movement as a unit vector, applied each tick according to the entity's speed.
The y value is not used. X is used for forward movement and z is used for sideways movement. These values are relative to the entity's current yaw.
 - 
speed
protected double speedThe speed multiplier of the entity. 
 - 
 - 
Constructor Details
- 
GlowLivingEntity
public GlowLivingEntity(org.bukkit.Location location) Creates a mob within the specified world.- Parameters:
 location- The location.
 - 
GlowLivingEntity
protected GlowLivingEntity(org.bukkit.Location location, double maxHealth) Creates a mob within the specified world.- Parameters:
 location- The location.maxHealth- The max health of this mob.
 
 - 
 - 
Method Details
- 
pulse
public void pulse()Description copied from class:GlowEntityCalled every game cycle. Subclasses should implement this to implement periodic functionality e.g. mob AI.- Overrides:
 pulsein classGlowEntity
 - 
pulsePhysics
protected void pulsePhysics()- Overrides:
 pulsePhysicsin classGlowEntity
 - 
getVelocityFromMovement
protected org.bukkit.util.Vector getVelocityFromMovement() - 
jump
protected void jump() - 
isJumping
public boolean isJumping()- Specified by:
 isJumpingin interfaceorg.bukkit.entity.LivingEntity
 - 
setJumping
public void setJumping(boolean jumping) - Specified by:
 setJumpingin interfaceorg.bukkit.entity.LivingEntity
 - 
reset
public void reset()Description copied from class:GlowEntityResets the previous location and other properties to their current value.- Overrides:
 resetin classGlowEntity
 - 
createUpdateMessage
Description copied from class:GlowEntityCreates aMessagewhich can be sent to a client to update this entity.- Overrides:
 createUpdateMessagein classGlowEntity- Parameters:
 session- Session to update this entity for- Returns:
 - A message which can update this entity.
 
 - 
getEyeHeight
public double getEyeHeight()- Specified by:
 getEyeHeightin interfaceorg.bukkit.entity.LivingEntity
 - 
getEyeHeight
public double getEyeHeight(boolean ignoreSneaking) - Specified by:
 getEyeHeightin interfaceorg.bukkit.entity.LivingEntity
 - 
getEyeLocation
@NotNull public @NotNull org.bukkit.Location getEyeLocation()- Specified by:
 getEyeLocationin interfaceorg.bukkit.entity.LivingEntity
 - 
hasLineOfSight
public boolean hasLineOfSight(@NotNull @NotNull org.bukkit.entity.Entity other) - Specified by:
 hasLineOfSightin interfaceorg.bukkit.entity.LivingEntity
 - 
setHeadYaw
public void setHeadYaw(float headYaw)  - 
getEquipment
public org.bukkit.inventory.EntityEquipment getEquipment()- Specified by:
 getEquipmentin interfaceorg.bukkit.entity.LivingEntity
 - 
setRemainingAir
public void setRemainingAir(int ticks) - Specified by:
 setRemainingAirin interfaceorg.bukkit.entity.LivingEntity
 - 
setMaximumAir
public void setMaximumAir(int ticks) - Specified by:
 setMaximumAirin interfaceorg.bukkit.entity.LivingEntity
 - 
getRemoveWhenFarAway
public boolean getRemoveWhenFarAway()- Specified by:
 getRemoveWhenFarAwayin interfaceorg.bukkit.entity.LivingEntity
 - 
getCanPickupItems
public boolean getCanPickupItems()- Specified by:
 getCanPickupItemsin interfaceorg.bukkit.entity.LivingEntity
 - 
getHurtSound
protected org.bukkit.Sound getHurtSound()Get the hurt sound of this entity, or null for silence.- Returns:
 - the hurt sound if available
 
 - 
getDeathSound
protected org.bukkit.Sound getDeathSound()Get the death sound of this entity, or null for silence.- Returns:
 - the death sound if available
 
 - 
getAmbientSound
protected org.bukkit.Sound getAmbientSound()Get the ambient sound this entity makes randomly, or null for silence.- Returns:
 - the ambient sound if available
 
 - 
getAmbientDelay
protected int getAmbientDelay()Get the minimal delay until the entity can produce an ambient sound.- Returns:
 - the minimal delay until the entity can produce an ambient sound
 
 - 
getSoundVolume
protected float getSoundVolume()The volume of the sounds this entity makes.- Returns:
 - the volume of the sounds
 
 - 
getSoundPitch
protected float getSoundPitch()The pitch of the sounds this entity makes.- Returns:
 - the pitch of the sounds
 
 - 
canTakeDamage
public boolean canTakeDamage(org.bukkit.event.entity.EntityDamageEvent.DamageCause damageCause) Get whether this entity should take damage from the specified source.Usually used to check environmental sources such as drowning.
- Parameters:
 damageCause- the damage source to check- Returns:
 - whether this entity can take damage from the source
 
 - 
isArthropod
public boolean isArthropod()Get whether of not this entity is an arthropod.- Returns:
 - true if this entity is an arthropod, false otherwise
 
 - 
isUndead
public boolean isUndead()Get whether or not this entity is undead.- Returns:
 - true if this entity is undead, false otherwise
 
 - 
getLineOfSight
@NotNull public @NotNull List<org.bukkit.block.Block> getLineOfSight(Set<org.bukkit.Material> transparent, int maxDistance) - Specified by:
 getLineOfSightin interfaceorg.bukkit.entity.LivingEntity
 - 
getTargetBlock
@NotNull public @NotNull org.bukkit.block.Block getTargetBlock(Set<org.bukkit.Material> materials, int maxDistance) - Specified by:
 getTargetBlockin interfaceorg.bukkit.entity.LivingEntity
 - 
getTargetBlock
@Nullable public @Nullable org.bukkit.block.Block getTargetBlock(int maxDistance, @NotNull com.destroystokyo.paper.block.TargetBlockInfo.FluidMode fluidMode) - Specified by:
 getTargetBlockin interfaceorg.bukkit.entity.LivingEntity
 - 
getTargetBlockFace
@Nullable public @Nullable org.bukkit.block.BlockFace getTargetBlockFace(int maxDistance, @NotNull com.destroystokyo.paper.block.TargetBlockInfo.FluidMode fluidMode) - Specified by:
 getTargetBlockFacein interfaceorg.bukkit.entity.LivingEntity
 - 
getTargetBlockInfo
@Nullable public @Nullable com.destroystokyo.paper.block.TargetBlockInfo getTargetBlockInfo(int maxDistance, @NotNull com.destroystokyo.paper.block.TargetBlockInfo.FluidMode fluidMode) - Specified by:
 getTargetBlockInfoin interfaceorg.bukkit.entity.LivingEntity
 - 
getTargetEntity
@Nullable public @Nullable org.bukkit.entity.Entity getTargetEntity(int maxDistance, boolean ignoreBlocks) - Specified by:
 getTargetEntityin interfaceorg.bukkit.entity.LivingEntity
 - 
getTargetEntityInfo
@Nullable public @Nullable com.destroystokyo.paper.entity.TargetEntityInfo getTargetEntityInfo(int maxDistance, boolean ignoreBlocks) - Specified by:
 getTargetEntityInfoin interfaceorg.bukkit.entity.LivingEntity
 - 
getTargetBlockExact
@Nullable public @Nullable org.bukkit.block.Block getTargetBlockExact(int maxDistance) - Specified by:
 getTargetBlockExactin interfaceorg.bukkit.entity.LivingEntity
 - 
getTargetBlockExact
@Nullable public @Nullable org.bukkit.block.Block getTargetBlockExact(int maxDistance, @NotNull @NotNull org.bukkit.FluidCollisionMode fluidCollisionMode) - Specified by:
 getTargetBlockExactin interfaceorg.bukkit.entity.LivingEntity
 - 
rayTraceBlocks
@Nullable public @Nullable org.bukkit.util.RayTraceResult rayTraceBlocks(double maxDistance) - Specified by:
 rayTraceBlocksin interfaceorg.bukkit.entity.LivingEntity
 - 
rayTraceBlocks
@Nullable public @Nullable org.bukkit.util.RayTraceResult rayTraceBlocks(double maxDistance, @NotNull @NotNull org.bukkit.FluidCollisionMode fluidCollisionMode) - Specified by:
 rayTraceBlocksin interfaceorg.bukkit.entity.LivingEntity
 - 
getLastTwoTargetBlocks
@NotNull public @NotNull List<org.bukkit.block.Block> getLastTwoTargetBlocks(Set<org.bukkit.Material> materials, int maxDistance) - Specified by:
 getLastTwoTargetBlocksin interfaceorg.bukkit.entity.LivingEntity
 - 
isWithinSolidBlock
public boolean isWithinSolidBlock()Returns whether the entity's eye location is within a solid block.- Returns:
 - true if the entity is in a solid block; false otherwise
 
 - 
launchProjectile
@NotNull public <T extends org.bukkit.entity.Projectile> T launchProjectile(@NotNull @NotNull Class<? extends T> type) - Specified by:
 launchProjectilein interfaceorg.bukkit.projectiles.ProjectileSource
 - 
launchProjectile
@NotNull public <T extends org.bukkit.entity.Projectile> T launchProjectile(@NotNull @NotNull Class<? extends T> type, org.bukkit.util.Vector vector) - Specified by:
 launchProjectilein interfaceorg.bukkit.projectiles.ProjectileSource
 - 
launchProjectile
public <T extends org.bukkit.entity.Projectile> T launchProjectile(Class<? extends T> type, org.bukkit.util.Vector vector, float offset, float speed) Launches a projectile from this entity.- Type Parameters:
 T- the projectile class- Parameters:
 type- the projectile classvector- the direction to shoot inoffset- TODO: document this parameterspeed- the speed for the first flight tick- Returns:
 - the launched projectile
 
 - 
launchProjectile
protected <T extends org.bukkit.entity.Projectile> T launchProjectile(Class<? extends T> type, org.bukkit.Location location, org.bukkit.util.Vector originalVector, float pitchOffset, float velocity) Launches a projectile from this entity in the horizontal direction it is facing, relative to the given velocity vector.- Type Parameters:
 T- the projectile class- Parameters:
 type- the projectile classlocation- the location to launch the projectile fromoriginalVector- the direction to shoot inpitchOffset- degrees to subtract from the pitch angle while calculating the y component of the initial directionvelocity- the speed for the first flight tick- Returns:
 - the launched projectile
 
 - 
setHealth
public void setHealth(double health) - Specified by:
 setHealthin interfaceorg.bukkit.entity.Damageable
 - 
damage
public void damage(double amount, org.bukkit.entity.Entity source, @NotNull @NotNull org.bukkit.event.entity.EntityDamageEvent.DamageCause cause) - Specified by:
 damagein interfaceorg.bukkit.entity.Damageable- Overrides:
 damagein classGlowEntity
 - 
getMaxHealth
public double getMaxHealth()- Specified by:
 getMaxHealthin interfaceorg.bukkit.entity.Damageable
 - 
setMaxHealth
public void setMaxHealth(double health) - Specified by:
 setMaxHealthin interfaceorg.bukkit.entity.Damageable
 - 
resetMaxHealth
public void resetMaxHealth()- Specified by:
 resetMaxHealthin interfaceorg.bukkit.entity.Damageable
 - 
addPotionEffect
public boolean addPotionEffect(org.bukkit.potion.PotionEffect effect) - Specified by:
 addPotionEffectin interfaceorg.bukkit.entity.LivingEntity
 - 
addPotionEffect
public boolean addPotionEffect(org.bukkit.potion.PotionEffect effect, boolean force) - Specified by:
 addPotionEffectin interfaceorg.bukkit.entity.LivingEntity
 - 
addPotionEffects
- Specified by:
 addPotionEffectsin interfaceorg.bukkit.entity.LivingEntity
 - 
hasPotionEffect
public boolean hasPotionEffect(org.bukkit.potion.PotionEffectType type) - Specified by:
 hasPotionEffectin interfaceorg.bukkit.entity.LivingEntity
 - 
getPotionEffect
public org.bukkit.potion.PotionEffect getPotionEffect(org.bukkit.potion.PotionEffectType potionEffectType) - Specified by:
 getPotionEffectin interfaceorg.bukkit.entity.LivingEntity
 - 
removePotionEffect
public void removePotionEffect(org.bukkit.potion.PotionEffectType type) - Specified by:
 removePotionEffectin interfaceorg.bukkit.entity.LivingEntity
 - 
getActivePotionEffects
- Specified by:
 getActivePotionEffectsin interfaceorg.bukkit.entity.LivingEntity
 - 
clearActivePotionEffects
public void clearActivePotionEffects() - 
updatePotionEffectsMetadata
protected void updatePotionEffectsMetadata() - 
setOnGround
public void setOnGround(boolean onGround) Description copied from class:GlowEntitySets the on-ground flag and clears fall distance.- Overrides:
 setOnGroundin classGlowEntity- Parameters:
 onGround- true if this entity is now on the ground; false otherwise
 - 
isGliding
public boolean isGliding()- Specified by:
 isGlidingin interfaceorg.bukkit.entity.LivingEntity
 - 
setGliding
public void setGliding(boolean gliding) - Specified by:
 setGlidingin interfaceorg.bukkit.entity.LivingEntity
 - 
getShieldBlockingDelay
public int getShieldBlockingDelay()- Specified by:
 getShieldBlockingDelayin interfaceorg.bukkit.entity.LivingEntity
 - 
setShieldBlockingDelay
public void setShieldBlockingDelay(int delay) - Specified by:
 setShieldBlockingDelayin interfaceorg.bukkit.entity.LivingEntity
 - 
getActiveItem
public org.bukkit.inventory.ItemStack getActiveItem()- Specified by:
 getActiveItemin interfaceorg.bukkit.entity.LivingEntity
 - 
clearActiveItem
public void clearActiveItem()- Specified by:
 clearActiveItemin interfaceorg.bukkit.entity.LivingEntity
 - 
getItemUseRemainingTime
public int getItemUseRemainingTime()- Specified by:
 getItemUseRemainingTimein interfaceorg.bukkit.entity.LivingEntity
 - 
getHandRaisedTime
public int getHandRaisedTime()- Specified by:
 getHandRaisedTimein interfaceorg.bukkit.entity.LivingEntity
 - 
isHandRaised
public boolean isHandRaised()- Specified by:
 isHandRaisedin interfaceorg.bukkit.entity.LivingEntity
 - 
isSwimming
public boolean isSwimming()- Specified by:
 isSwimmingin interfaceorg.bukkit.entity.LivingEntity
 - 
setSwimming
public void setSwimming(boolean swimming) - Specified by:
 setSwimmingin interfaceorg.bukkit.entity.LivingEntity
 - 
isRiptiding
public boolean isRiptiding()- Specified by:
 isRiptidingin interfaceorg.bukkit.entity.LivingEntity
 - 
isSleeping
public boolean isSleeping()- Specified by:
 isSleepingin interfaceorg.bukkit.entity.LivingEntity
 - 
setState
Sets the AI state.- Parameters:
 state- the new AI state
 - 
setAI
public void setAI(boolean ai) - Specified by:
 setAIin interfaceorg.bukkit.entity.LivingEntity
 - 
hasAI
public boolean hasAI()- Specified by:
 hasAIin interfaceorg.bukkit.entity.LivingEntity
 - 
attack
public void attack(@NotNull @NotNull org.bukkit.entity.Entity entity) - Specified by:
 attackin interfaceorg.bukkit.entity.LivingEntity
 - 
swingMainHand
public void swingMainHand()- Specified by:
 swingMainHandin interfaceorg.bukkit.entity.LivingEntity
 - 
swingOffHand
public void swingOffHand()- Specified by:
 swingOffHandin interfaceorg.bukkit.entity.LivingEntity
 - 
getCollidableExemptions
- Specified by:
 getCollidableExemptionsin interfaceorg.bukkit.entity.LivingEntity
 - 
getMemory
@Nullable public <T> T getMemory(@NotNull @NotNull org.bukkit.entity.memory.MemoryKey<T> memoryKey) - Specified by:
 getMemoryin interfaceorg.bukkit.entity.LivingEntity
 - 
setMemory
public <T> void setMemory(@NotNull @NotNull org.bukkit.entity.memory.MemoryKey<T> memoryKey, @Nullable T t) - Specified by:
 setMemoryin interfaceorg.bukkit.entity.LivingEntity
 - 
getCategory
@NotNull public @NotNull org.bukkit.entity.EntityCategory getCategory()- Specified by:
 getCategoryin interfaceorg.bukkit.entity.LivingEntity
 - 
playAnimation
public void playAnimation(@NotNull @NotNull org.bukkit.EntityAnimation animation) - Specified by:
 playAnimationin interfaceorg.bukkit.entity.LivingEntity
 - 
getAttribute
@Nullable public @Nullable org.bukkit.attribute.AttributeInstance getAttribute(@NotNull @NotNull org.bukkit.attribute.Attribute attribute) - Specified by:
 getAttributein interfaceorg.bukkit.attribute.Attributable
 - 
registerAttribute
public void registerAttribute(@NotNull @NotNull org.bukkit.attribute.Attribute attribute) - Specified by:
 registerAttributein interfaceorg.bukkit.attribute.Attributable
 - 
entityInteract
- Overrides:
 entityInteractin classGlowEntity
 - 
tryUseTotem
public boolean tryUseTotem()Use "Totem of Undying" if equipped- Returns:
 - result of totem use
 
 - 
playPickupItemAnimation
public void playPickupItemAnimation(@NotNull @NotNull org.bukkit.entity.Item item, int quantity) - Specified by:
 playPickupItemAnimationin interfaceorg.bukkit.entity.LivingEntity
 - 
getTaskManager
The entity's AI task manager. - 
getAttributeManager
The LivingEntity's AttributeManager. - 
getHealth
public double getHealth()The entity's health.- Specified by:
 getHealthin interfaceorg.bukkit.entity.Damageable
 - 
getDeathTicks
public int getDeathTicks()The LivingEntity's number of ticks since death. - 
getMovement
public org.bukkit.util.Vector getMovement()The entity's movement as a unit vector, applied each tick according to the entity's speed.
The y value is not used. X is used for forward movement and z is used for sideways movement. These values are relative to the entity's current yaw.
 - 
setMovement
public void setMovement(org.bukkit.util.Vector movement) The entity's movement as a unit vector, applied each tick according to the entity's speed.
The y value is not used. X is used for forward movement and z is used for sideways movement. These values are relative to the entity's current yaw.
 - 
getSpeed
public double getSpeed()The speed multiplier of the entity. - 
setSpeed
public void setSpeed(double speed) The speed multiplier of the entity. - 
getKiller
public org.bukkit.entity.Player getKiller()The player that killed this entity, or null if not killed by a player.- Specified by:
 getKillerin interfaceorg.bukkit.entity.LivingEntity
 - 
setKiller
public void setKiller(org.bukkit.entity.Player killer) The player that killed this entity, or null if not killed by a player.- Specified by:
 setKillerin interfaceorg.bukkit.entity.LivingEntity
 - 
getPlayerDamageTick
public int getPlayerDamageTick()The tick that the entity got hit by a player. The default value was set to -101 rather than 0. - 
setPlayerDamageTick
public void setPlayerDamageTick(int playerDamageTick) The tick that the entity got hit by a player. The default value was set to -101 rather than 0. - 
isCollidable
public boolean isCollidable()Whether entities can collide with this entity.- Specified by:
 isCollidablein interfaceorg.bukkit.entity.LivingEntity
 - 
setCollidable
public void setCollidable(boolean collidable) Whether entities can collide with this entity.- Specified by:
 setCollidablein interfaceorg.bukkit.entity.LivingEntity
 - 
getArrowsStuck
public int getArrowsStuck()The number of arrows stuck inside this entity.- Specified by:
 getArrowsStuckin interfaceorg.bukkit.entity.LivingEntity
 - 
setArrowsStuck
public void setArrowsStuck(int arrowsStuck) The number of arrows stuck inside this entity.- Specified by:
 setArrowsStuckin interfaceorg.bukkit.entity.LivingEntity
 - 
getArrowsInBody
public int getArrowsInBody()The number of arrows in an entity's body.
TODO: Investigate difference between this and `arrowsStuck`.- Specified by:
 getArrowsInBodyin interfaceorg.bukkit.entity.LivingEntity
 - 
setArrowsInBody
public void setArrowsInBody(int arrowsInBody) The number of arrows in an entity's body.
TODO: Investigate difference between this and `arrowsStuck`.- Specified by:
 setArrowsInBodyin interfaceorg.bukkit.entity.LivingEntity
 - 
getArrowCooldown
public int getArrowCooldown()The time in ticks until the next arrow leaves the entity's body.- Specified by:
 getArrowCooldownin interfaceorg.bukkit.entity.LivingEntity
 - 
setArrowCooldown
public void setArrowCooldown(int arrowCooldown) The time in ticks until the next arrow leaves the entity's body.- Specified by:
 setArrowCooldownin interfaceorg.bukkit.entity.LivingEntity
 - 
getAbsorptionAmount
public double getAbsorptionAmount()The entity's absorption amount (the amount of health supplementing its max health).- Specified by:
 getAbsorptionAmountin interfaceorg.bukkit.entity.Damageable
 - 
setAbsorptionAmount
public void setAbsorptionAmount(double absorptionAmount) The entity's absorption amount (the amount of health supplementing its max health).- Specified by:
 setAbsorptionAmountin interfaceorg.bukkit.entity.Damageable
 - 
isInvisible
public boolean isInvisible()Whether the entity is invisible.- Specified by:
 isInvisiblein interfaceorg.bukkit.entity.LivingEntity
 - 
setInvisible
public void setInvisible(boolean invisible) Whether the entity is invisible.- Specified by:
 setInvisiblein interfaceorg.bukkit.entity.LivingEntity
 - 
getHurtDirection
public float getHurtDirection()The entity's hurt direction (angle).- Specified by:
 getHurtDirectionin interfaceorg.bukkit.entity.LivingEntity
 - 
setHurtDirection
public void setHurtDirection(float hurtDirection) The entity's hurt direction (angle).- Specified by:
 setHurtDirectionin interfaceorg.bukkit.entity.LivingEntity
 - 
getLastDamage
public double getLastDamage()The magnitude of the last damage the entity took.- Specified by:
 getLastDamagein interfaceorg.bukkit.entity.LivingEntity
 - 
setLastDamage
public void setLastDamage(double lastDamage) The magnitude of the last damage the entity took.- Specified by:
 setLastDamagein interfaceorg.bukkit.entity.LivingEntity
 - 
getRemainingAir
public int getRemainingAir()How long the entity has until it runs out of air.- Specified by:
 getRemainingAirin interfaceorg.bukkit.entity.LivingEntity
 - 
getMaximumAir
public int getMaximumAir()The maximum amount of air the entity can hold.- Specified by:
 getMaximumAirin interfaceorg.bukkit.entity.LivingEntity
 - 
getNoDamageTicks
public int getNoDamageTicks()The number of ticks remaining in the invincibility period.- Specified by:
 getNoDamageTicksin interfaceorg.bukkit.entity.LivingEntity
 - 
setNoDamageTicks
public void setNoDamageTicks(int noDamageTicks) The number of ticks remaining in the invincibility period.- Specified by:
 setNoDamageTicksin interfaceorg.bukkit.entity.LivingEntity
 - 
getMaximumNoDamageTicks
public int getMaximumNoDamageTicks()The default length of the invincibility period.- Specified by:
 getMaximumNoDamageTicksin interfaceorg.bukkit.entity.LivingEntity
 - 
setMaximumNoDamageTicks
public void setMaximumNoDamageTicks(int maximumNoDamageTicks) The default length of the invincibility period.- Specified by:
 setMaximumNoDamageTicksin interfaceorg.bukkit.entity.LivingEntity
 - 
setRemoveWhenFarAway
public void setRemoveWhenFarAway(boolean removeWhenFarAway) Whether the entity should be removed if it is too distant from players.- Specified by:
 setRemoveWhenFarAwayin interfaceorg.bukkit.entity.LivingEntity
 - 
setCanPickupItems
public void setCanPickupItems(boolean canPickupItems) Whether the (non-Player) entity can pick up armor and tools.- Specified by:
 setCanPickupItemsin interfaceorg.bukkit.entity.LivingEntity
 - 
getEquipmentMonitor
Monitor for the equipment of this entity. - 
isFallFlying
public boolean isFallFlying()Whether the entity can automatically glide when falling with an Elytra equipped. This value is ignored for players. - 
setFallFlying
public void setFallFlying(boolean fallFlying) Whether the entity can automatically glide when falling with an Elytra equipped. This value is ignored for players. - 
getLastDamager
public org.bukkit.entity.Entity getLastDamager()The last entity which damaged this living entity. - 
setLastDamager
public void setLastDamager(org.bukkit.entity.Entity lastDamager) The last entity which damaged this living entity. - 
getHeadYaw
public float getHeadYaw()The head rotation of the living entity, if applicable. - 
getState
The entity's current AI state. 
 -