public class MovementStatesSystems
Class MovementStatesSystems. Provides movementstatessystems functionality for the Hytale server.
java.lang.Object > MovementStatesSystems
Field Summary
world
final
World
world
Field world.
playerComponent
final
Player
playerComponent
Field playerComponent.
movementStatesComponent
final
MovementStatesComponent
movementStatesComponent
Field movementStatesComponent.
perWorldData
final
PlayerWorldData
perWorldData
Field perWorldData.
movementStates
final
SavedMovementStates
movementStates
Field movementStates.
visibleComponent
final
EntityTrackerSystems.Visible
visibleComponent
Field visibleComponent.
newMovementStates
final
MovementStates
newMovementStates
Field newMovementStates.
sentMovementStates
final
MovementStates
sentMovementStates
Field sentMovementStates.
update
final
ComponentUpdate
update
Field update.
Method Detail
AddSystem
Method AddSystem.
- Parameters:
@Nonnull final ComponentTypemovementStatesComponentComponentType
onEntityAdd
public
void
onEntityAdd
(@Nonnull final Holder holder, @Nonnull final AddReason reason, @Nonnull final Store store)
Method onEntityAdd.
- Parameters:
@Nonnull final Holderholder@Nonnull final AddReasonreason@Nonnull final Storestore
onEntityRemoved
public
void
onEntityRemoved
(@Nonnull final Holder holder, @Nonnull final RemoveReason reason, @Nonnull final Store store)
Method onEntityRemoved.
- Parameters:
@Nonnull final Holderholder@Nonnull final RemoveReasonreason@Nonnull final Storestore
PlayerInitSystem
public
public
PlayerInitSystem
(@Nonnull final ComponentType playerComponentType, @Nonnull final ComponentType movementStatesComponentType)
Method PlayerInitSystem.
- Parameters:
@Nonnull final ComponentTypeplayerComponentType@Nonnull final ComponentTypemovementStatesComponentType
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
SavedMovementStates
public
new
SavedMovementStates
()
Method SavedMovementStates.
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
TickingSystem
public
public
TickingSystem
(@Nonnull final ComponentType visibleComponentType, @Nonnull final ComponentType movementStatesComponentComponentType)
Method TickingSystem.
- Parameters:
@Nonnull final ComponentTypevisibleComponentType@Nonnull final ComponentTypemovementStatesComponentComponentType
isParallel
public
boolean
isParallel
(final int archetypeChunkSize, final int taskCount)
Method isParallel.
- Parameters:
final intarchetypeChunkSizefinal inttaskCount
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
if
public
else
if
(!visibleComponent.newlyVisibleTo.isEmpty()
Method if.
- Parameters:
!visibleComponent.newlyVisibleTo.isEmpty(!visibleComponent.newlyVisibleTo.isEmpty(
queueUpdatesFor
static
void
queueUpdatesFor
(@Nonnull final Ref ref, @Nonnull final Map, EntityTrackerSystems.EntityViewer> visibleTo, @Nonnull final MovementStatesComponent movementStatesComponent)
Method queueUpdatesFor.
- Parameters:
@Nonnull final Refref@Nonnull final Map, EntityTrackerSystems.EntityViewer>visibleTo@Nonnull final MovementStatesComponentmovementStatesComponent
copyMovementStatesFrom
static
void
copyMovementStatesFrom
(@Nonnull final MovementStates from, @Nonnull final MovementStates to)
Method copyMovementStatesFrom.
- Parameters:
@Nonnull final MovementStatesfrom@Nonnull final MovementStatesto