Class Entity
java.lang.Object
com.hypixel.hytale.server.core.entity.Entity
- All Implemented Interfaces:
Component<EntityStore>,Cloneable
- Direct Known Subclasses:
LegacySpawnBeaconEntity,LivingEntity,PatrolPathMarkerEntity,SpawnBeacon
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BuilderCodec<Entity> static final KeyedCodec<String> protected StringDeprecated, for removal: This API element is subject to removal in a future version.protected UUIDstatic final com.hypixel.hytale.logger.HytaleLoggerstatic final KeyedCodec<Model.ModelReference> protected intprotected Ref<EntityStore> protected Throwableprivate TransformComponentDeprecated.static final intstatic final KeyedCodec<UUID> static final intprotected final AtomicBooleanprotected WorldFields inherited from interface com.hypixel.hytale.component.Component
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.clone()booleanDeprecated, for removal: This API element is subject to removal in a future version.intDeprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.getUuid()Deprecated, for removal: This API element is subject to removal in a future version.getWorld()inthashCode()booleanbooleanisHiddenFromLivingEntity(Ref<EntityStore> ref, Ref<EntityStore> targetRef, ComponentAccessor<EntityStore> componentAccessor) voidloadIntoWorld(World world) voidDeprecated, for removal: This API element is subject to removal in a future version.voidmoveTo(Ref<EntityStore> ref, double locX, double locY, double locZ, ComponentAccessor<EntityStore> componentAccessor) Deprecated.booleanremove()voidsetLegacyUUID(UUID uuid) voidsetReference(Ref<EntityStore> reference) voidsetTransformComponent(TransformComponent transform) Deprecated, for removal: This API element is subject to removal in a future version.toHolder()toString()voidbooleanMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.hypixel.hytale.component.Component
cloneSerializable
-
Field Details
-
LOGGER
@Nonnull public static final com.hypixel.hytale.logger.HytaleLogger LOGGER -
VERSION
public static final int VERSION- See Also:
-
MODEL
-
DISPLAY_NAME
-
UUID
-
CODEC
-
UNASSIGNED_ID
public static final int UNASSIGNED_ID- See Also:
-
networkId
protected int networkId -
legacyUuid
-
world
-
reference
-
transformComponent
Deprecated. -
legacyDisplayName
Deprecated, for removal: This API element is subject to removal in a future version. -
wasRemoved
-
removedBy
-
-
Constructor Details
-
Entity
Deprecated. -
Entity
public Entity()
-
-
Method Details
-
markNeedsSave
Deprecated, for removal: This API element is subject to removal in a future version. -
setLegacyUUID
-
remove
public boolean remove() -
loadIntoWorld
-
unloadFromWorld
public void unloadFromWorld() -
getNetworkId
Deprecated, for removal: This API element is subject to removal in a future version. -
getLegacyDisplayName
Deprecated, for removal: This API element is subject to removal in a future version. -
getUuid
Deprecated, for removal: This API element is subject to removal in a future version. -
setTransformComponent
Deprecated, for removal: This API element is subject to removal in a future version. -
getTransformComponent
Deprecated, for removal: This API element is subject to removal in a future version. -
moveTo
@Deprecated public void moveTo(@Nonnull Ref<EntityStore> ref, double locX, double locY, double locZ, @Nonnull ComponentAccessor<EntityStore> componentAccessor) Deprecated. -
getWorld
-
wasRemoved
public boolean wasRemoved() -
isCollidable
public boolean isCollidable() -
hashCode
public int hashCode() -
equals
-
toString
-
isHiddenFromLivingEntity
public boolean isHiddenFromLivingEntity(@Nonnull Ref<EntityStore> ref, @Nonnull Ref<EntityStore> targetRef, @Nonnull ComponentAccessor<EntityStore> componentAccessor) -
setReference
-
getReference
-
clearReference
Deprecated. -
clone
- Specified by:
clonein interfaceComponent<EntityStore>- Overrides:
clonein classObject
-
toHolder
-