Entity

abstract class Entity implements Component

Class Entity. Provides entity functionality for the Hytale server.

java.lang.Object > Entity

Field Summary

networkId

protected int networkId

Field networkId.

legacyUuid

protected UUID legacyUuid

Field legacyUuid.

world

protected World world

Field world.

reference

protected Ref reference

Field reference.

transformComponent

private TransformComponent transformComponent

Field transformComponent.

legacyDisplayName

protected String legacyDisplayName

Field legacyDisplayName.

removedBy

protected Throwable removedBy

Field removedBy.

chunk

final WorldChunk chunk

Field chunk.

key

final String key

Field key.

store

final Store store

Field store.

entity

final Entity entity

Field entity.

codec

final DirectDecodeCodec codec

Field codec.

document

final BsonDocument document

Field document.

t

final Entity t

Field t.

holder

final Holder holder

Field holder.

componentStore

final Store componentStore

Field componentStore.

archetype

final Archetype archetype

Field archetype.

componentType2

final ComponentType componentType2

Field componentType2.

component

final Component component

Field component.

animationId

final String animationId

Field animationId.

handle

final MethodHandle handle

Field handle.

Method Detail

Entity

public public Entity (@Nullable final World world)

Method Entity.

Parameters:
@Nullable final World world

markNeedsSave

public void markNeedsSave ()

Method markNeedsSave.

setLegacyUUID

public void setLegacyUUID (@Nullable final UUID uuid)

Method setLegacyUUID.

Parameters:
@Nullable final UUID uuid

remove

public boolean remove ()

Method remove.

EntityRemoveEvent

public new EntityRemoveEvent (this)

Method EntityRemoveEvent.

Parameters:
this this

loadIntoWorld

public void loadIntoWorld (@Nonnull final World world)

Method loadIntoWorld.

Parameters:
@Nonnull final World world

IllegalArgumentException

public new IllegalArgumentException ("Entity is already in a world! " + String.valueOf(this)

Method IllegalArgumentException.

Parameters:
"Entity is already in a world! " + String.valueOf(this

unloadFromWorld

public void unloadFromWorld ()

Method unloadFromWorld.

getNetworkId

public int getNetworkId ()

Method getNetworkId.

getLegacyDisplayName

public String getLegacyDisplayName ()

Method getLegacyDisplayName.

getUuid

public UUID getUuid ()

Method getUuid.

setTransformComponent

public void setTransformComponent (final TransformComponent transform)

Method setTransformComponent.

Parameters:
final TransformComponent transform

getTransformComponent

public TransformComponent getTransformComponent ()

Method getTransformComponent.

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

getWorld

public World getWorld ()

Method getWorld.

wasRemoved

public boolean wasRemoved ()

Method wasRemoved.

isCollidable

public boolean isCollidable ()

Method isCollidable.

hashCode

public int hashCode ()

Method hashCode.

equals

public boolean equals (@Nullable final Object o)

Method equals.

Parameters:
@Nullable final Object o

toString

public String toString ()

Method toString.

isHiddenFromLivingEntity

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

Method isHiddenFromLivingEntity.

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

setReference

public void setReference (@Nonnull final Ref reference)

Method setReference.

Parameters:
@Nonnull final Ref reference

getReference

public Ref getReference ()

Method getReference.

clearReference

public void clearReference ()

Method clearReference.

clone

public Component clone ()

Method clone.

BsonString

public new BsonString (EntityModule.get()

Method BsonString.

Parameters:
EntityModule.get( EntityModule.get(

toHolder

public Holder toHolder ()

Method toHolder.

getHurtAnimationIds

static String[] getHurtAnimationIds (@Nonnull final MovementStates movementStates, @Nonnull final DamageCause damageCause)

Method getHurtAnimationIds.

Parameters:
@Nonnull final MovementStates movementStates
@Nonnull final DamageCause damageCause

getDeathAnimationIds

static String[] getDeathAnimationIds (@Nonnull final MovementStates movementStates, @Nonnull final DamageCause damageCause)

Method getDeathAnimationIds.

Parameters:
@Nonnull final MovementStates movementStates
@Nonnull final DamageCause damageCause

handle

static MethodHandle handle ()

Method handle.

ensureHandle

static MethodHandle ensureHandle ()

Method ensureHandle.

invoke

static String invoke (String p0, String p1)

Method invoke.

Parameters:
String p0
String p1