HyCodeYourTale
classpublicabstractPriority 1

Entity

com.hypixel.hytale.server.core.entity.Entity

implements Component

24

Methods

24

Public Methods

7

Fields

3

Constructors

Constants

BuilderCodec<Entity>CODEC= BuilderCodec.abstractBuilder(Entity.class) .legacyVersioned() .codecVersion(5) ...
StringDEATH= "Death"
StringDESPAWN= "Despawn"
KeyedCodec<String>DISPLAY_NAME= new KeyedCodec<>("DisplayName", Codec.STRING)
StringFLY_SUFFIX= "Fly"
StringHURT= "Hurt"
HytaleLoggerLOGGER= HytaleLogger.forEnclosingClass()
KeyedCodec<Model.ModelReference>MODEL= new KeyedCodec<>("Model", Model.ModelReference.CODEC)
StringSWIM_SUFFIX= "Swim"
intUNASSIGNED_ID= -1
KeyedCodec<UUID>UUID= new KeyedCodec<>("UUID", Codec.UUID_BINARY)
intVERSION= 5

Constructors

package-private
Entity(Ref<EntityStore> ref, Ref<EntityStore> targetRef, ComponentAccessor<EntityStore> componentAccessor)
public
Entity(World world)
public
Entity()

Methods

Public Methods (24)

public
void clearReference()
@Deprecated
public
Component<EntityStore> clone()
@Override
public
boolean equals(Object o)
@Override
publicstatic
String[] getDeathAnimationIds(MovementStates movementStates, DamageCause damageCause)
@Nonnull
publicstatic
String[] getHurtAnimationIds(MovementStates movementStates, DamageCause damageCause)
@Nonnull
public
String getLegacyDisplayName()
public
int getNetworkId()
public
Ref<EntityStore> getReference()
@Nullable
public
TransformComponent getTransformComponent()
public
UUID getUuid()
public
World getWorld()
@Nullable
public
int hashCode()
@Override
public
boolean isCollidable()
public
void loadIntoWorld(World world)
public
void markNeedsSave()
public
void moveTo(Ref<EntityStore> ref, double locX, double locY, double locZ, ComponentAccessor<EntityStore> componentAccessor)
@Deprecated
public
boolean remove()
public
void setLegacyUUID(UUID uuid)
public
void setReference(Ref<EntityStore> reference)
public
void setTransformComponent(TransformComponent transform)
public
Holder<EntityStore> toHolder()
public
String toString()
@Nonnull@Override
public
void unloadFromWorld()
public
boolean wasRemoved()

Fields

Protected Fields (6)

protectedString legacyDisplayName
protectedUUID legacyUuid
protectedint networkId
protectedRef<EntityStore> reference
protectedThrowable removedBy
protectedWorld world

Private/Package Fields (1)

privateTransformComponent transformComponent

Related Classes