Package be.seeseemelk.mockbukkit.entity
Class LivingEntityMock
java.lang.Object
org.bukkit.command.CommandSender.Spigot
org.bukkit.entity.Entity.Spigot
be.seeseemelk.mockbukkit.entity.EntityMock
be.seeseemelk.mockbukkit.entity.LivingEntityMock
- All Implemented Interfaces:
MessageTarget,net.kyori.adventure.audience.Audience,net.kyori.adventure.pointer.Pointered,net.kyori.adventure.sound.Sound.Emitter,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:
ArmorStandMock,HumanEntityMock,MobMock
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.bukkit.entity.Entity
org.bukkit.entity.Entity.Spigot -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected Map<org.bukkit.attribute.Attribute,AttributeInstanceMock> protected double -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedLivingEntityMock(@NotNull ServerMock server, @NotNull UUID uuid) -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddPotionEffect(@NotNull org.bukkit.potion.PotionEffect effect) booleanaddPotionEffect(@NotNull org.bukkit.potion.PotionEffect effect, boolean force) Deprecated.booleanaddPotionEffects(Collection<org.bukkit.potion.PotionEffect> effects) voidattack(@NotNull org.bukkit.entity.Entity target) voidvoiddamage(double amount) voiddamage(double amount, org.bukkit.entity.Entity source) double@Nullable org.bukkit.inventory.ItemStack@NotNull Collection<org.bukkit.potion.PotionEffect>intintintorg.bukkit.attribute.AttributeInstancegetAttribute(@NotNull org.bukkit.attribute.Attribute attribute) intintboolean@NotNull org.bukkit.entity.EntityCategory@Nullable org.bukkit.inventory.EntityEquipmentdoubledoublegetEyeHeight(boolean ignorePose) @NotNull org.bukkit.Location@NotNull org.bukkit.inventory.EquipmentSlotintdoublefloatintorg.bukkit.entity.Playerdouble@NotNull List<org.bukkit.block.Block>getLastTwoTargetBlocks(Set<org.bukkit.Material> transparent, int maxDistance) @NotNull org.bukkit.entity.Entity@NotNull List<org.bukkit.block.Block>getLineOfSight(Set<org.bukkit.Material> transparent, int maxDistance) doubleintint<T> TgetMemory(@NotNull org.bukkit.entity.memory.MemoryKey<T> memoryKey) intorg.bukkit.potion.PotionEffectgetPotionEffect(@NotNull org.bukkit.potion.PotionEffectType type) intbooleanint@Nullable org.bukkit.block.BlockgetTargetBlock(int maxDistance, @NotNull com.destroystokyo.paper.block.TargetBlockInfo.FluidMode fluidMode) @NotNull org.bukkit.block.BlockgetTargetBlock(Set<org.bukkit.Material> transparent, int maxDistance) org.bukkit.block.BlockgetTargetBlockExact(int maxDistance) org.bukkit.block.BlockgetTargetBlockExact(int maxDistance, @NotNull org.bukkit.FluidCollisionMode fluidCollisionMode) @Nullable org.bukkit.block.BlockFacegetTargetBlockFace(int maxDistance, @NotNull com.destroystokyo.paper.block.TargetBlockInfo.FluidMode fluidMode) @Nullable com.destroystokyo.paper.block.TargetBlockInfogetTargetBlockInfo(int maxDistance, @NotNull 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) booleanhasAI()booleanhasLineOfSight(@NotNull org.bukkit.entity.Entity other) booleanhasLineOfSight(@NotNull org.bukkit.Location location) booleanhasPotionEffect(@NotNull org.bukkit.potion.PotionEffectType type) booleanbooleanbooleanisDead()booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanisValid()<T extends org.bukkit.entity.Projectile>
TlaunchProjectile(@NotNull Class<? extends T> projectile) <T extends org.bukkit.entity.Projectile>
TlaunchProjectile(@NotNull Class<? extends T> projectile, org.bukkit.util.Vector velocity) voidplayPickupItemAnimation(@NotNull org.bukkit.entity.Item item, int quantity) org.bukkit.util.RayTraceResultrayTraceBlocks(double maxDistance) org.bukkit.util.RayTraceResultrayTraceBlocks(double maxDistance, @NotNull org.bukkit.FluidCollisionMode fluidCollisionMode) voidregisterAttribute(@NotNull org.bukkit.attribute.Attribute attribute) voidremove()voidremovePotionEffect(@NotNull org.bukkit.potion.PotionEffectType type) voidvoidsetAbsorptionAmount(double amount) voidsetAI(boolean ai) voidsetArrowCooldown(int ticks) voidsetArrowsInBody(int count) voidsetArrowsStuck(int arrows) voidsetBeeStingerCooldown(int ticks) voidsetBeeStingersInBody(int count) voidsetCanPickupItems(boolean pickup) voidsetCollidable(boolean collidable) voidsetGliding(boolean gliding) voidsetHealth(double health) voidsetHurtDirection(float hurtDirection) voidsetInvisible(boolean invisible) voidsetJumping(boolean jumping) voidsetKiller(@Nullable org.bukkit.entity.Player killer) voidsetLastDamage(double damage) booleansetLeashHolder(org.bukkit.entity.Entity holder) voidsetMaxHealth(double health) voidsetMaximumAir(int ticks) voidsetMaximumNoDamageTicks(int ticks) <T> voidsetMemory(@NotNull org.bukkit.entity.memory.MemoryKey<T> memoryKey, T memoryValue) voidsetNoDamageTicks(int ticks) voidsetRemainingAir(int ticks) voidsetRemoveWhenFarAway(boolean remove) voidsetShieldBlockingDelay(int delay) voidsetSwimming(boolean swimming) voidvoidMethods inherited from class be.seeseemelk.mockbukkit.entity.EntityMock
addAttachment, addAttachment, addAttachment, addAttachment, addPassenger, addScoreboardTag, asHoverEvent, assertLocation, assertNotTeleported, assertTeleported, clearTeleported, customName, customName, eject, equals, fromMobSpawner, getBoundingBox, getChunk, getCustomName, getEffectivePermissions, getEntityId, getEntitySpawnReason, getFacing, getFallDistance, getFireTicks, getFreezeTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getMaxFreezeTicks, getMetadata, getName, getNearbyEntities, getOrigin, getPassenger, getPassengers, getPersistentDataContainer, getPistonMoveReaction, getPortalCooldown, getPose, getScoreboardTags, getServer, getSpawnCategory, getTeleportCause, getTicksLived, getTrackedPlayers, getType, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, hasGravity, hashCode, hasMetadata, hasPermission, hasPermission, hasTeleported, isCustomNameVisible, isEmpty, isFreezeTickingLocked, isFrozen, isGlowing, isInBubbleColumn, isInLava, isInPowderedSnow, isInRain, isInsideVehicle, isInvulnerable, isInWater, isInWaterOrBubbleColumn, isInWaterOrRain, isInWaterOrRainOrBubbleColumn, isOnGround, isOp, isPermissionSet, isPermissionSet, isPersistent, isSilent, isTicking, isVisualFire, leaveVehicle, lockFreezeTicks, name, nextComponentMessage, nextMessage, playEffect, recalculatePermissions, removeAttachment, removeMetadata, removePassenger, removeScoreboardTag, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, setCustomName, setCustomNameVisible, setFallDistance, setFireTicks, setFreezeTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setLocation, setMetadata, setName, setOp, setPassenger, setPersistent, setPortalCooldown, setRotation, setSilent, setTicksLived, setVelocity, setVisualFire, spawnAt, spawnAt, spigot, teamDisplayName, teleport, teleport, teleport, teleportMethods inherited from class org.bukkit.command.CommandSender.Spigot
sendMessage, sendMessage, sendMessage, sendMessageMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.kyori.adventure.audience.Audience
clearTitle, filterAudience, forEachAudience, hideBossBar, openBook, openBook, playSound, playSound, playSound, resetTitle, sendActionBar, sendActionBar, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendPlayerListFooter, sendPlayerListFooter, sendPlayerListHeader, sendPlayerListHeader, sendPlayerListHeaderAndFooter, sendPlayerListHeaderAndFooter, sendTitlePart, showBossBar, showTitle, stopSound, stopSoundMethods inherited from interface org.bukkit.command.CommandSender
getName, name, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendPlainMessage, sendRichMessageMethods inherited from interface org.bukkit.entity.Entity
addPassenger, addScoreboardTag, asHoverEvent, eject, fromMobSpawner, getBoundingBox, getChunk, getEntityId, getEntitySpawnReason, getFacing, getFallDistance, getFireTicks, getFreezeTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getMaxFreezeTicks, getNearbyEntities, getOrigin, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getPose, getScoreboardTags, getServer, getSpawnCategory, getTicksLived, getTrackedPlayers, getType, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, hasGravity, isCustomNameVisible, isEmpty, isFreezeTickingLocked, isFrozen, isGlowing, isInBubbleColumn, isInLava, isInPowderedSnow, isInRain, isInsideVehicle, isInvulnerable, isInWater, isInWaterOrBubbleColumn, isInWaterOrRain, isInWaterOrRainOrBubbleColumn, isOnGround, isPersistent, isSilent, isTicking, isVisualFire, leaveVehicle, lockFreezeTicks, playEffect, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setFreezeTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setPassenger, setPersistent, setPortalCooldown, setRotation, setSilent, setTicksLived, setVelocity, setVisualFire, spawnAt, spawnAt, spigot, teamDisplayName, teleport, teleport, teleport, teleport, teleportAsync, teleportAsyncMethods inherited from interface net.kyori.adventure.text.event.HoverEventSource
asHoverEventMethods inherited from interface org.bukkit.entity.LivingEntity
getTargetBlock, getTargetBlockFace, getTargetBlockInfo, getTargetEntity, getTargetEntityInfo, playPickupItemAnimationMethods inherited from interface be.seeseemelk.mockbukkit.command.MessageTarget
assertNoMoreSaid, assertSaidMethods 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, permissionValue, permissionValue, recalculatePermissions, removeAttachmentMethods inherited from interface org.bukkit.persistence.PersistentDataHolder
getPersistentDataContainerMethods inherited from interface net.kyori.adventure.pointer.Pointered
get, getOrDefault, getOrDefaultFrom, pointersMethods inherited from interface org.bukkit.permissions.ServerOperator
isOp, setOp
-
Field Details
-
health
protected double health -
alive
protected boolean alive -
attributes
-
-
Constructor Details
-
LivingEntityMock
-
-
Method Details
-
getHealth
public double getHealth()- Specified by:
getHealthin interfaceorg.bukkit.entity.Damageable
-
remove
public void remove()- Specified by:
removein interfaceorg.bukkit.entity.Entity- Overrides:
removein classEntityMock
-
isDead
public boolean isDead()- Specified by:
isDeadin interfaceorg.bukkit.entity.Entity- Overrides:
isDeadin classEntityMock
-
isValid
public boolean isValid()- Specified by:
isValidin interfaceorg.bukkit.entity.Entity- Overrides:
isValidin classEntityMock
-
setHealth
public void setHealth(double health) - Specified by:
setHealthin interfaceorg.bukkit.entity.Damageable
-
getAbsorptionAmount
public double getAbsorptionAmount()- Specified by:
getAbsorptionAmountin interfaceorg.bukkit.entity.Damageable
-
setAbsorptionAmount
public void setAbsorptionAmount(double amount) - Specified by:
setAbsorptionAmountin interfaceorg.bukkit.entity.Damageable
-
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
-
damage
public void damage(double amount) - Specified by:
damagein interfaceorg.bukkit.entity.Damageable
-
damage
public void damage(double amount, org.bukkit.entity.Entity source) - Specified by:
damagein interfaceorg.bukkit.entity.Damageable
-
getAttribute
public 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
-
launchProjectile
@NotNull public <T extends org.bukkit.entity.Projectile> T launchProjectile(@NotNull @NotNull Class<? extends T> projectile) - Specified by:
launchProjectilein interfaceorg.bukkit.projectiles.ProjectileSource
-
launchProjectile
@NotNull public <T extends org.bukkit.entity.Projectile> T launchProjectile(@NotNull @NotNull Class<? extends T> projectile, org.bukkit.util.Vector velocity) - Specified by:
launchProjectilein interfaceorg.bukkit.projectiles.ProjectileSource
-
getEyeHeight
public double getEyeHeight()- Specified by:
getEyeHeightin interfaceorg.bukkit.entity.LivingEntity
-
getEyeHeight
public double getEyeHeight(boolean ignorePose) - Specified by:
getEyeHeightin interfaceorg.bukkit.entity.LivingEntity
-
getEyeLocation
@NotNull public @NotNull org.bukkit.Location getEyeLocation()- Specified by:
getEyeLocationin interfaceorg.bukkit.entity.LivingEntity
-
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> transparent, 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
-
getLastTwoTargetBlocks
@NotNull public @NotNull List<org.bukkit.block.Block> getLastTwoTargetBlocks(Set<org.bukkit.Material> transparent, int maxDistance) - Specified by:
getLastTwoTargetBlocksin interfaceorg.bukkit.entity.LivingEntity
-
getTargetBlockExact
public org.bukkit.block.Block getTargetBlockExact(int maxDistance) - Specified by:
getTargetBlockExactin interfaceorg.bukkit.entity.LivingEntity
-
getTargetBlockExact
public org.bukkit.block.Block getTargetBlockExact(int maxDistance, @NotNull @NotNull org.bukkit.FluidCollisionMode fluidCollisionMode) - Specified by:
getTargetBlockExactin interfaceorg.bukkit.entity.LivingEntity
-
rayTraceBlocks
public org.bukkit.util.RayTraceResult rayTraceBlocks(double maxDistance) - Specified by:
rayTraceBlocksin interfaceorg.bukkit.entity.LivingEntity
-
rayTraceBlocks
public org.bukkit.util.RayTraceResult rayTraceBlocks(double maxDistance, @NotNull @NotNull org.bukkit.FluidCollisionMode fluidCollisionMode) - Specified by:
rayTraceBlocksin interfaceorg.bukkit.entity.LivingEntity
-
getRemainingAir
public int getRemainingAir()- Specified by:
getRemainingAirin interfaceorg.bukkit.entity.LivingEntity
-
setRemainingAir
public void setRemainingAir(int ticks) - Specified by:
setRemainingAirin interfaceorg.bukkit.entity.LivingEntity
-
getMaximumAir
public int getMaximumAir()- Specified by:
getMaximumAirin interfaceorg.bukkit.entity.LivingEntity
-
setMaximumAir
public void setMaximumAir(int ticks) - Specified by:
setMaximumAirin interfaceorg.bukkit.entity.LivingEntity
-
getMaximumNoDamageTicks
public int getMaximumNoDamageTicks()- Specified by:
getMaximumNoDamageTicksin interfaceorg.bukkit.entity.LivingEntity
-
setMaximumNoDamageTicks
public void setMaximumNoDamageTicks(int ticks) - Specified by:
setMaximumNoDamageTicksin interfaceorg.bukkit.entity.LivingEntity
-
getLastDamage
public double getLastDamage()- Specified by:
getLastDamagein interfaceorg.bukkit.entity.LivingEntity
-
setLastDamage
public void setLastDamage(double damage) - Specified by:
setLastDamagein interfaceorg.bukkit.entity.LivingEntity
-
getNoDamageTicks
public int getNoDamageTicks()- Specified by:
getNoDamageTicksin interfaceorg.bukkit.entity.LivingEntity
-
setNoDamageTicks
public void setNoDamageTicks(int ticks) - Specified by:
setNoDamageTicksin interfaceorg.bukkit.entity.LivingEntity
-
getKiller
public org.bukkit.entity.Player getKiller()- Specified by:
getKillerin interfaceorg.bukkit.entity.LivingEntity
-
setKiller
public void setKiller(@Nullable @Nullable org.bukkit.entity.Player killer) - Specified by:
setKillerin interfaceorg.bukkit.entity.LivingEntity
-
addPotionEffect
public boolean addPotionEffect(@NotNull @NotNull org.bukkit.potion.PotionEffect effect) - Specified by:
addPotionEffectin interfaceorg.bukkit.entity.LivingEntity
-
addPotionEffect
@Deprecated public boolean addPotionEffect(@NotNull @NotNull org.bukkit.potion.PotionEffect effect, boolean force) Deprecated.- Specified by:
addPotionEffectin interfaceorg.bukkit.entity.LivingEntity
-
addPotionEffects
- Specified by:
addPotionEffectsin interfaceorg.bukkit.entity.LivingEntity
-
hasPotionEffect
public boolean hasPotionEffect(@NotNull @NotNull org.bukkit.potion.PotionEffectType type) - Specified by:
hasPotionEffectin interfaceorg.bukkit.entity.LivingEntity
-
getPotionEffect
public org.bukkit.potion.PotionEffect getPotionEffect(@NotNull @NotNull org.bukkit.potion.PotionEffectType type) - Specified by:
getPotionEffectin interfaceorg.bukkit.entity.LivingEntity
-
removePotionEffect
public void removePotionEffect(@NotNull @NotNull org.bukkit.potion.PotionEffectType type) - Specified by:
removePotionEffectin interfaceorg.bukkit.entity.LivingEntity
-
getActivePotionEffects
- Specified by:
getActivePotionEffectsin interfaceorg.bukkit.entity.LivingEntity
-
hasLineOfSight
public boolean hasLineOfSight(@NotNull @NotNull org.bukkit.entity.Entity other) - Specified by:
hasLineOfSightin interfaceorg.bukkit.entity.LivingEntity
-
hasLineOfSight
public boolean hasLineOfSight(@NotNull @NotNull org.bukkit.Location location) - Specified by:
hasLineOfSightin interfaceorg.bukkit.entity.LivingEntity
-
getRemoveWhenFarAway
public boolean getRemoveWhenFarAway()- Specified by:
getRemoveWhenFarAwayin interfaceorg.bukkit.entity.LivingEntity
-
setRemoveWhenFarAway
public void setRemoveWhenFarAway(boolean remove) - Specified by:
setRemoveWhenFarAwayin interfaceorg.bukkit.entity.LivingEntity
-
getEquipment
@Nullable public @Nullable org.bukkit.inventory.EntityEquipment getEquipment()- Specified by:
getEquipmentin interfaceorg.bukkit.entity.LivingEntity
-
setCanPickupItems
public void setCanPickupItems(boolean pickup) - Specified by:
setCanPickupItemsin interfaceorg.bukkit.entity.LivingEntity
-
getCanPickupItems
public boolean getCanPickupItems()- Specified by:
getCanPickupItemsin interfaceorg.bukkit.entity.LivingEntity
-
isLeashed
public boolean isLeashed()- Specified by:
isLeashedin interfaceorg.bukkit.entity.LivingEntity
-
getLeashHolder
- Specified by:
getLeashHolderin interfaceorg.bukkit.entity.LivingEntity- Throws:
IllegalStateException
-
setLeashHolder
public boolean setLeashHolder(org.bukkit.entity.Entity holder) - Specified by:
setLeashHolderin interfaceorg.bukkit.entity.LivingEntity
-
isGliding
public boolean isGliding()- Specified by:
isGlidingin interfaceorg.bukkit.entity.LivingEntity
-
setGliding
public void setGliding(boolean gliding) - Specified by:
setGlidingin 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
-
isClimbing
public boolean isClimbing()- Specified by:
isClimbingin interfaceorg.bukkit.entity.LivingEntity
-
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 target) - 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
-
setCollidable
public void setCollidable(boolean collidable) - Specified by:
setCollidablein interfaceorg.bukkit.entity.LivingEntity
-
isCollidable
public boolean isCollidable()- Specified by:
isCollidablein 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 memoryValue) - Specified by:
setMemoryin interfaceorg.bukkit.entity.LivingEntity
-
getCategory
@NotNull public @NotNull org.bukkit.entity.EntityCategory getCategory()- Specified by:
getCategoryin interfaceorg.bukkit.entity.LivingEntity
-
setArrowsInBody
public void setArrowsInBody(int count) - Specified by:
setArrowsInBodyin interfaceorg.bukkit.entity.LivingEntity
-
getBeeStingerCooldown
public int getBeeStingerCooldown()- Specified by:
getBeeStingerCooldownin interfaceorg.bukkit.entity.LivingEntity
-
setBeeStingerCooldown
public void setBeeStingerCooldown(int ticks) - Specified by:
setBeeStingerCooldownin interfaceorg.bukkit.entity.LivingEntity
-
getBeeStingersInBody
public int getBeeStingersInBody()- Specified by:
getBeeStingersInBodyin interfaceorg.bukkit.entity.LivingEntity
-
setBeeStingersInBody
public void setBeeStingersInBody(int count) - Specified by:
setBeeStingersInBodyin interfaceorg.bukkit.entity.LivingEntity
-
getArrowsInBody
public int getArrowsInBody()- Specified by:
getArrowsInBodyin interfaceorg.bukkit.entity.LivingEntity
-
setArrowCooldown
public void setArrowCooldown(int ticks) - Specified by:
setArrowCooldownin interfaceorg.bukkit.entity.LivingEntity
-
getArrowCooldown
public int getArrowCooldown()- Specified by:
getArrowCooldownin interfaceorg.bukkit.entity.LivingEntity
-
setInvisible
public void setInvisible(boolean invisible) - Specified by:
setInvisiblein interfaceorg.bukkit.entity.LivingEntity
-
isInvisible
public boolean isInvisible()- Specified by:
isInvisiblein interfaceorg.bukkit.entity.LivingEntity
-
getArrowsStuck
public int getArrowsStuck()- Specified by:
getArrowsStuckin interfaceorg.bukkit.entity.LivingEntity
-
setArrowsStuck
public void setArrowsStuck(int arrows) - Specified by:
setArrowsStuckin 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
@Nullable public @Nullable 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
-
getHandRaised
@NotNull public @NotNull org.bukkit.inventory.EquipmentSlot getHandRaised()- Specified by:
getHandRaisedin interfaceorg.bukkit.entity.LivingEntity
-
isJumping
public boolean isJumping()- Specified by:
isJumpingin interfaceorg.bukkit.entity.LivingEntity
-
setJumping
public void setJumping(boolean jumping) - Specified by:
setJumpingin interfaceorg.bukkit.entity.LivingEntity
-
playPickupItemAnimation
public void playPickupItemAnimation(@NotNull @NotNull org.bukkit.entity.Item item, int quantity) - Specified by:
playPickupItemAnimationin interfaceorg.bukkit.entity.LivingEntity
-
getHurtDirection
public float getHurtDirection()- Specified by:
getHurtDirectionin interfaceorg.bukkit.entity.LivingEntity
-
setHurtDirection
public void setHurtDirection(float hurtDirection) - Specified by:
setHurtDirectionin interfaceorg.bukkit.entity.LivingEntity
-