abstract class Entity implements Component
Class Entity. Provides entity functionality for the Hytale server.
java.lang.Object > Entity
Field Summary
networkId
Field networkId.
legacyUuid
Field legacyUuid.
world
Field world.
reference
Field reference.
transformComponent
Field transformComponent.
legacyDisplayName
Field legacyDisplayName.
removedBy
Field removedBy.
chunk
Field chunk.
key
Field key.
store
Field store.
entity
Field entity.
codec
Field codec.
document
Field document.
t
Field t.
holder
Field holder.
componentStore
Field componentStore.
archetype
Field archetype.
componentType2
Field componentType2.
component
Field component.
animationId
Field animationId.
handle
Field handle.
Method Detail
Entity
public
Entity
(@Nullable final World world)
Method Entity.
- Parameters:
@Nullable final Worldworld
markNeedsSave
void
markNeedsSave
()
Method markNeedsSave.
setLegacyUUID
void
setLegacyUUID
(@Nullable final UUID uuid)
Method setLegacyUUID.
- Parameters:
@Nullable final UUIDuuid
remove
boolean
remove
()
Method remove.
EntityRemoveEvent
new
EntityRemoveEvent
(this)
Method EntityRemoveEvent.
- Parameters:
thisthis
loadIntoWorld
void
loadIntoWorld
(@Nonnull final World world)
Method loadIntoWorld.
- Parameters:
@Nonnull final Worldworld
IllegalArgumentException
new
IllegalArgumentException
("Entity is already in a world! " + String.valueOf(this)
Method IllegalArgumentException.
- Parameters:
"Entity is already in a world! " +String.valueOf(this
unloadFromWorld
void
unloadFromWorld
()
Method unloadFromWorld.
getNetworkId
int
getNetworkId
()
Method getNetworkId.
getLegacyDisplayName
String
getLegacyDisplayName
()
Method getLegacyDisplayName.
getUuid
UUID
getUuid
()
Method getUuid.
getTransformComponent
Method getTransformComponent.
moveTo
void
moveTo
(@Nonnull final Ref ref, final double locX, final double locY, final double locZ, @Nonnull final ComponentAccessor componentAccessor)
Method moveTo.
- Parameters:
@Nonnull final Refreffinal doublelocXfinal doublelocYfinal doublelocZ@Nonnull final ComponentAccessorcomponentAccessor
getWorld
World
getWorld
()
Method getWorld.
wasRemoved
boolean
wasRemoved
()
Method wasRemoved.
isCollidable
boolean
isCollidable
()
Method isCollidable.
hashCode
int
hashCode
()
Method hashCode.
equals
boolean
equals
(@Nullable final Object o)
Method equals.
- Parameters:
@Nullable final Objecto
toString
String
toString
()
Method toString.
isHiddenFromLivingEntity
boolean
isHiddenFromLivingEntity
(@Nonnull final Ref ref, @Nonnull final Ref targetRef, @Nonnull final ComponentAccessor componentAccessor)
Method isHiddenFromLivingEntity.
- Parameters:
@Nonnull final Refref@Nonnull final ReftargetRef@Nonnull final ComponentAccessorcomponentAccessor
clearReference
void
clearReference
()
Method clearReference.
BsonString
new
BsonString
(EntityModule.get()
Method BsonString.
- Parameters:
EntityModule.get(EntityModule.get(
getHurtAnimationIds
String[]
getHurtAnimationIds
(@Nonnull final MovementStates movementStates, @Nonnull final DamageCause damageCause)
Method getHurtAnimationIds.
- Parameters:
@Nonnull final MovementStatesmovementStates@Nonnull final DamageCausedamageCause
getDeathAnimationIds
String[]
getDeathAnimationIds
(@Nonnull final MovementStates movementStates, @Nonnull final DamageCause damageCause)
Method getDeathAnimationIds.
- Parameters:
@Nonnull final MovementStatesmovementStates@Nonnull final DamageCausedamageCause
handle
MethodHandle
handle
()
Method handle.
ensureHandle
MethodHandle
ensureHandle
()
Method ensureHandle.
invoke
String
invoke
(String p0, String p1)
Method invoke.
- Parameters:
Stringp0Stringp1