Class LivingEntity
java.lang.Object
com.hypixel.hytale.server.core.entity.Entity
com.hypixel.hytale.server.core.entity.LivingEntity
- All Implemented Interfaces:
Component<EntityStore>,Cloneable
-
Nested Class Summary
Nested classes/interfaces inherited from class com.hypixel.hytale.server.core.entity.Entity
Entity.DefaultAnimations -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate EventRegistrationstatic final BuilderCodec<LivingEntity> protected doublestatic final intprivate Inventoryprivate booleanprivate final StatModifiersManagerFields inherited from class com.hypixel.hytale.server.core.entity.Entity
DISPLAY_NAME, legacyDisplayName, legacyUuid, LOGGER, MODEL, networkId, reference, removedBy, UNASSIGNED_ID, UUID, VERSION, wasRemoved, worldFields inherited from interface com.hypixel.hytale.component.Component
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanApplyItemStackPenalties(Ref<EntityStore> ref, ComponentAccessor<EntityStore> componentAccessor) booleancanBreathe(Ref<EntityStore> ref, BlockMaterial breathingMaterial, int fluidId, ComponentAccessor<EntityStore> componentAccessor) booleancanDecreaseItemStackDurability(Ref<EntityStore> ref, ComponentAccessor<EntityStore> componentAccessor) booleanprotected abstract InventorydecreaseItemStackDurability(Ref<EntityStore> ref, ItemStack itemStack, int inventoryId, int slotId, ComponentAccessor<EntityStore> componentAccessor) doublestatic longgetPackedMaterialAndFluidAtBreathingHeight(Ref<EntityStore> ref, ComponentAccessor<EntityStore> componentAccessor) voidvoidmoveTo(Ref<EntityStore> ref, double locX, double locY, double locZ, ComponentAccessor<EntityStore> componentAccessor) voidsetCurrentFallDistance(double currentFallDistance) setInventory(Inventory inventory) setInventory(Inventory inventory, boolean ensureCapacity) setInventory(Inventory inventory, boolean ensureCapacity, List<ItemStack> remainder) toString()updateItemStackDurability(Ref<EntityStore> ref, ItemStack itemStack, ItemContainer container, int slotId, double durabilityChange, ComponentAccessor<EntityStore> componentAccessor) Methods inherited from class com.hypixel.hytale.server.core.entity.Entity
clearReference, clone, equals, getLegacyDisplayName, getNetworkId, getReference, getTransformComponent, getUuid, getWorld, hashCode, isCollidable, isHiddenFromLivingEntity, loadIntoWorld, markNeedsSave, remove, setLegacyUUID, setReference, setTransformComponent, toHolder, unloadFromWorld, wasRemovedMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.hypixel.hytale.component.Component
cloneSerializable
-
Field Details
-
CODEC
-
DEFAULT_ITEM_THROW_SPEED
public static final int DEFAULT_ITEM_THROW_SPEED- See Also:
-
statModifiersManager
-
inventory
-
currentFallDistance
protected double currentFallDistance -
armorInventoryChangeEventRegistration
-
isEquipmentNetworkOutdated
private boolean isEquipmentNetworkOutdated
-
-
Constructor Details
-
LivingEntity
public LivingEntity() -
LivingEntity
-
-
Method Details
-
createDefaultInventory
-
canBreathe
public boolean canBreathe(@Nonnull Ref<EntityStore> ref, @Nonnull BlockMaterial breathingMaterial, int fluidId, @Nonnull ComponentAccessor<EntityStore> componentAccessor) -
getPackedMaterialAndFluidAtBreathingHeight
public static long getPackedMaterialAndFluidAtBreathingHeight(@Nonnull Ref<EntityStore> ref, @Nonnull ComponentAccessor<EntityStore> componentAccessor) -
getInventory
-
setInventory
-
setInventory
-
setInventory
-
moveTo
public void moveTo(@Nonnull Ref<EntityStore> ref, double locX, double locY, double locZ, @Nonnull ComponentAccessor<EntityStore> componentAccessor) -
canDecreaseItemStackDurability
public boolean canDecreaseItemStackDurability(@Nonnull Ref<EntityStore> ref, @Nonnull ComponentAccessor<EntityStore> componentAccessor) -
canApplyItemStackPenalties
public boolean canApplyItemStackPenalties(Ref<EntityStore> ref, ComponentAccessor<EntityStore> componentAccessor) -
decreaseItemStackDurability
@Nullable public ItemStackSlotTransaction decreaseItemStackDurability(@Nonnull Ref<EntityStore> ref, @Nullable ItemStack itemStack, int inventoryId, int slotId, @Nonnull ComponentAccessor<EntityStore> componentAccessor) -
updateItemStackDurability
@Nullable public ItemStackSlotTransaction updateItemStackDurability(@Nonnull Ref<EntityStore> ref, @Nonnull ItemStack itemStack, ItemContainer container, int slotId, double durabilityChange, @Nonnull ComponentAccessor<EntityStore> componentAccessor) -
invalidateEquipmentNetwork
public void invalidateEquipmentNetwork() -
consumeEquipmentNetworkOutdated
public boolean consumeEquipmentNetworkOutdated() -
getStatModifiersManager
-
getCurrentFallDistance
public double getCurrentFallDistance() -
setCurrentFallDistance
public void setCurrentFallDistance(double currentFallDistance) -
toString
-