Skip to content

LivingEntity

Package: com.hypixel.hytale.server.core.entity

Type: abstract class

Extends: Entity

Constructors

java
public LivingEntity()
java
public LivingEntity(@Nonnull World world)

Static Fields

NameType
CODECBuilderCodec
DEFAULT_ITEM_THROW_SPEEDint

Fields

NameType
statModifiersManagerStatModifiersManager
inventoryInventory
currentFallDistancedouble
armorInventoryChangeEventRegistrationEventRegistration
isEquipmentNetworkOutdatedboolean

Static Methods

MethodReturns
getPackedMaterialAndFluidAtBreathingHeight(@Nonnull Ref ref, @Nonnull ComponentAccessor componentAccessor)long

Methods

MethodReturns
createDefaultInventory()abstract Inventory
canBreathe(@Nonnull Ref ref, @Nonnull BlockMaterial breathingMaterial, int fluidId, @Nonnull ComponentAccessor componentAccessor)boolean
getInventory()Inventory
setInventory(Inventory inventory)Inventory
setInventory(Inventory inventory, boolean ensureCapacity)Inventory
setInventory(Inventory inventory, boolean ensureCapacity, List remainder)Inventory
moveTo(@Nonnull Ref ref, double locX, double locY, double locZ, @Nonnull ComponentAccessor componentAccessor)void
canDecreaseItemStackDurability(@Nonnull Ref ref, @Nonnull ComponentAccessor componentAccessor)boolean
canApplyItemStackPenalties(Ref ref, ComponentAccessor componentAccessor)boolean
decreaseItemStackDurability(@Nonnull Ref ref, @Nullable ItemStack itemStack, int inventoryId, int slotId, @Nonnull ComponentAccessor componentAccessor)ItemStackSlotTransaction
updateItemStackDurability(@Nonnull Ref ref, @Nonnull ItemStack itemStack, ItemContainer container, int slotId, double durabilityChange, @Nonnull ComponentAccessor componentAccessor)ItemStackSlotTransaction
invalidateEquipmentNetwork()void
consumeEquipmentNetworkOutdated()boolean
getStatModifiersManager()StatModifiersManager
getCurrentFallDistance()double
setCurrentFallDistance(double currentFallDistance)void
toString()String

Unofficial documentation · Any questions? Found a mistake? Have something you want documented? Join the Discord server at the top and let us know in #hytale!