LivingEntity

abstract class LivingEntity extends Entity

Class LivingEntity. Provides livingentity functionality for the Hytale server.

java.lang.Object > Entity > LivingEntity

Field Summary

inventory

private Inventory inventory

Field inventory.

currentFallDistance

protected double currentFallDistance

Field currentFallDistance.

armorInventoryChangeEventRegistration

private EventRegistration armorInventoryChangeEventRegistration

Field armorInventoryChangeEventRegistration.

isEquipmentNetworkOutdated

private boolean isEquipmentNetworkOutdated

Field isEquipmentNetworkOutdated.

invulnerable

final boolean invulnerable

Field invulnerable.

world

final World world

Field world.

lookVec

final Transform lookVec

Field lookVec.

position

final Vector3d position

Field position.

chunkStore

final ChunkStore chunkStore

Field chunkStore.

chunkIndex

final long chunkIndex

Field chunkIndex.

chunkRef

final Ref chunkRef

Field chunkRef.

remainder

final List remainder

Field remainder.

transactionList

final ListTransaction transactionList

Field transactionList.

transformComponent

final TransformComponent transformComponent

Field transformComponent.

movementStatesComponent

final MovementStatesComponent movementStatesComponent

Field movementStatesComponent.

movementStates

final MovementStates movementStates

Field movementStates.

fallDamageActive

final boolean fallDamageActive

Field fallDamageActive.

item

final Item item

Field item.

section

final ItemContainer section

Field section.

transaction

final ItemStackSlotTransaction transaction

Field transaction.

updatedItemStack

final ItemStack updatedItemStack

Field updatedItemStack.

temp

final boolean temp

Field temp.

Method Detail

LivingEntity

public public LivingEntity ()

Method LivingEntity.

canBreathe

public boolean canBreathe (@Nonnull final Ref ref, @Nonnull final BlockMaterial breathingMaterial, final int fluidId, @Nonnull final ComponentAccessor componentAccessor)

Method canBreathe.

Parameters:
@Nonnull final Ref ref
@Nonnull final BlockMaterial breathingMaterial
final int fluidId
@Nonnull final ComponentAccessor componentAccessor

getPackedMaterialAndFluidAtBreathingHeight

static long getPackedMaterialAndFluidAtBreathingHeight (@Nonnull final Ref ref, @Nonnull final ComponentAccessor componentAccessor)

Method getPackedMaterialAndFluidAtBreathingHeight.

Parameters:
@Nonnull final Ref ref
@Nonnull final ComponentAccessor componentAccessor

getInventory

public Inventory getInventory ()

Method getInventory.

setInventory

public Inventory setInventory (final Inventory inventory)

Method setInventory.

Parameters:
final Inventory inventory

moveTo

public void moveTo (@Nonnull final Ref ref, final double locX, final double locY, final double locZ, @Nonnull final ComponentAccessor componentAccessor)

Method moveTo.

Parameters:
@Nonnull final Ref ref
final double locX
final double locY
final double locZ
@Nonnull final ComponentAccessor componentAccessor

canDecreaseItemStackDurability

public boolean canDecreaseItemStackDurability (@Nonnull final Ref ref, @Nonnull final ComponentAccessor componentAccessor)

Method canDecreaseItemStackDurability.

Parameters:
@Nonnull final Ref ref
@Nonnull final ComponentAccessor componentAccessor

canApplyItemStackPenalties

public boolean canApplyItemStackPenalties (final Ref ref, final ComponentAccessor componentAccessor)

Method canApplyItemStackPenalties.

Parameters:
final Ref ref
final ComponentAccessor componentAccessor

decreaseItemStackDurability

public ItemStackSlotTransaction decreaseItemStackDurability (@Nonnull final Ref ref, @Nullable final ItemStack itemStack, final int inventoryId, final int slotId, @Nonnull final ComponentAccessor componentAccessor)

Method decreaseItemStackDurability.

Parameters:
@Nonnull final Ref ref
@Nullable final ItemStack itemStack
final int inventoryId
final int slotId
@Nonnull final ComponentAccessor componentAccessor

updateItemStackDurability

public ItemStackSlotTransaction updateItemStackDurability (@Nonnull final Ref ref, @Nonnull final ItemStack itemStack, final ItemContainer container, final int slotId, final double durabilityChange, @Nonnull final ComponentAccessor componentAccessor)

Method updateItemStackDurability.

Parameters:
@Nonnull final Ref ref
@Nonnull final ItemStack itemStack
final ItemContainer container
final int slotId
final double durabilityChange
@Nonnull final ComponentAccessor componentAccessor

invalidateEquipmentNetwork

public void invalidateEquipmentNetwork ()

Method invalidateEquipmentNetwork.

consumeEquipmentNetworkOutdated

public boolean consumeEquipmentNetworkOutdated ()

Method consumeEquipmentNetworkOutdated.

getStatModifiersManager

public StatModifiersManager getStatModifiersManager ()

Method getStatModifiersManager.

getCurrentFallDistance

public double getCurrentFallDistance ()

Method getCurrentFallDistance.

setCurrentFallDistance

public void setCurrentFallDistance (final double currentFallDistance)

Method setCurrentFallDistance.

Parameters:
final double currentFallDistance

toString

public String toString ()

Method toString.