UpdateLocationSystems

public class UpdateLocationSystems

Class UpdateLocationSystems. Provides updatelocationsystems functionality for the Hytale server.

java.lang.Object > UpdateLocationSystems

Field Summary

position

final Vector3d position

Field position.

chunkStore

final ChunkStore chunkStore

Field chunkStore.

chunkComponentStore

final Store chunkComponentStore

Field chunkComponentStore.

chunkX

final int chunkX

Field chunkX.

chunkZ

final int chunkZ

Field chunkZ.

oldChunkRef

final Ref oldChunkRef

Field oldChunkRef.

oldWorldChunkComponent

final WorldChunk oldWorldChunkComponent

Field oldWorldChunkComponent.

newChunkIndex

final long newChunkIndex

Field newChunkIndex.

newChunkRef

final Ref newChunkRef

Field newChunkRef.

newWorldChunkComponent

final WorldChunk newWorldChunkComponent

Field newWorldChunkComponent.

asyncWorldChunk

final WorldChunk asyncWorldChunk

Field asyncWorldChunk.

entityStore

final Store entityStore

Field entityStore.

transformComponent

final TransformComponent transformComponent

Field transformComponent.

isPlayer

final boolean isPlayer

Field isPlayer.

bodyRotation

final Vector3f bodyRotation

Field bodyRotation.

targetPosition

final Vector3d targetPosition

Field targetPosition.

playerRefComponent

final PlayerRef playerRefComponent

Field playerRefComponent.

oldEntityChunkComponent

final EntityChunk oldEntityChunkComponent

Field oldEntityChunkComponent.

newEntityChunkComponent

final EntityChunk newEntityChunkComponent

Field newEntityChunkComponent.

holder

final Holder holder

Field holder.

chunkRef

final Ref chunkRef

Field chunkRef.

world

final World world

Field world.

ref

final Ref ref

Field ref.

Method Detail

updateLocation

static void updateLocation (@Nonnull final Ref ref, @Nonnull final TransformComponent transformComponent, @Nullable final World world, @Nonnull final CommandBuffer commandBuffer)

Method updateLocation.

Parameters:
@Nonnull final Ref ref
@Nonnull final TransformComponent transformComponent
@Nullable final World world
@Nonnull final CommandBuffer commandBuffer

updateChunkAsync

static void updateChunkAsync (@Nonnull final Ref ref, @Nullable final Ref newChunkRef, @Nullable final WorldChunk newWorldChunk, @Nonnull final Store chunkComponentStore)

Method updateChunkAsync.

Parameters:
@Nonnull final Ref ref
@Nullable final Ref newChunkRef
@Nullable final WorldChunk newWorldChunk
@Nonnull final Store chunkComponentStore

updateChunk

static void updateChunk (@Nonnull final Ref ref, @Nonnull final TransformComponent transformComponent, @Nullable final Ref oldChunkRef, @Nullable final Ref newChunkRef, @Nullable final WorldChunk newWorldChunkComponent, @Nonnull final ComponentAccessor chunkComponentStore, @Nonnull final ComponentAccessor entityComponentAccessor)

Method updateChunk.

Parameters:
@Nonnull final Ref ref
@Nonnull final TransformComponent transformComponent
@Nullable final Ref oldChunkRef
@Nullable final Ref newChunkRef
@Nullable final WorldChunk newWorldChunkComponent
@Nonnull final ComponentAccessor chunkComponentStore
@Nonnull final ComponentAccessor entityComponentAccessor

handleInvalidChunk

static void handleInvalidChunk (@Nonnull final Ref ref, @Nonnull final TransformComponent transformComponent, final boolean isPlayer, @Nonnull final ComponentAccessor entityComponentAccessor)

Method handleInvalidChunk.

Parameters:
@Nonnull final Ref ref
@Nonnull final TransformComponent transformComponent
final boolean isPlayer
@Nonnull final ComponentAccessor entityComponentAccessor

Teleport

public new Teleport (targetPosition, bodyRotation)

Method Teleport.

Parameters:
targetPosition targetPosition
bodyRotation bodyRotation

updateEntityInChunk

static void updateEntityInChunk (@Nonnull final Ref ref, @Nullable final Ref oldChunkRef, @Nonnull final Ref newChunkRef, @Nonnull final WorldChunk newWorldChunk, @Nonnull final ComponentAccessor chunkComponentStore, @Nonnull final ComponentAccessor entityComponentAccessor)

Method updateEntityInChunk.

Parameters:
@Nonnull final Ref ref
@Nullable final Ref oldChunkRef
@Nonnull final Ref newChunkRef
@Nonnull final WorldChunk newWorldChunk
@Nonnull final ComponentAccessor chunkComponentStore
@Nonnull final ComponentAccessor entityComponentAccessor

getQuery

public Query getQuery ()

Method getQuery.

onEntityAdded

public void onEntityAdded (@Nonnull final Ref ref, @Nonnull final AddReason reason, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)

Method onEntityAdded.

Parameters:
@Nonnull final Ref ref
@Nonnull final AddReason reason
@Nonnull final Store store
@Nonnull final CommandBuffer commandBuffer

onEntityRemove

public void onEntityRemove (@Nonnull final Ref ref, @Nonnull final RemoveReason reason, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)

Method onEntityRemove.

Parameters:
@Nonnull final Ref ref
@Nonnull final RemoveReason reason
@Nonnull final Store store
@Nonnull final CommandBuffer commandBuffer

tick

public void tick (final float dt, final int index, @Nonnull final ArchetypeChunk archetypeChunk, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)

Method tick.

Parameters:
final float dt
final int index
@Nonnull final ArchetypeChunk archetypeChunk
@Nonnull final Store store
@Nonnull final CommandBuffer commandBuffer