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 Refref@Nonnull final TransformComponenttransformComponent@Nullable final Worldworld@Nonnull final CommandBuffercommandBuffer
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 Refref@Nullable final RefnewChunkRef@Nullable final WorldChunknewWorldChunk@Nonnull final StorechunkComponentStore
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 Refref@Nonnull final TransformComponenttransformComponent@Nullable final RefoldChunkRef@Nullable final RefnewChunkRef@Nullable final WorldChunknewWorldChunkComponent@Nonnull final ComponentAccessorchunkComponentStore@Nonnull final ComponentAccessorentityComponentAccessor
handleInvalidChunk
static
void
handleInvalidChunk
(@Nonnull final Ref ref, @Nonnull final TransformComponent transformComponent, final boolean isPlayer, @Nonnull final ComponentAccessor entityComponentAccessor)
Method handleInvalidChunk.
- Parameters:
@Nonnull final Refref@Nonnull final TransformComponenttransformComponentfinal booleanisPlayer@Nonnull final ComponentAccessorentityComponentAccessor
Teleport
public
new
Teleport
(targetPosition, bodyRotation)
Method Teleport.
- Parameters:
targetPositiontargetPositionbodyRotationbodyRotation
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 Refref@Nullable final RefoldChunkRef@Nonnull final RefnewChunkRef@Nonnull final WorldChunknewWorldChunk@Nonnull final ComponentAccessorchunkComponentStore@Nonnull final ComponentAccessorentityComponentAccessor
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 Refref@Nonnull final AddReasonreason@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer
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 Refref@Nonnull final RemoveReasonreason@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer
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 floatdtfinal intindex@Nonnull final ArchetypeChunkarchetypeChunk@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer