ParkourCheckpointSystems

public class ParkourCheckpointSystems

Class ParkourCheckpointSystems. Provides parkourcheckpointsystems functionality for the Hytale server.

java.lang.Object > ParkourCheckpointSystems

Field Summary

entity

final ParkourCheckpoint entity

Field entity.

lastIndex

final int lastIndex

Field lastIndex.

parkourCheckpointIndex

final int parkourCheckpointIndex

Field parkourCheckpointIndex.

results

final ObjectList> results

Field results.

position

final Vector3d position

Field position.

parkourPlugin

final ParkourPlugin parkourPlugin

Field parkourPlugin.

currentCheckpointByPlayerMap

final Object2IntMap currentCheckpointByPlayerMap

Field currentCheckpointByPlayerMap.

startTimeByPlayerMap

final Object2LongMap startTimeByPlayerMap

Field startTimeByPlayerMap.

otherReference

final Ref otherReference

Field otherReference.

uuidComponent

final UUIDComponent uuidComponent

Field uuidComponent.

playerUuid

final UUID playerUuid

Field playerUuid.

player

final Player player

Field player.

currentCheckpoint

final int currentCheckpoint

Field currentCheckpoint.

completionTimeNano

final long completionTimeNano

Field completionTimeNano.

completionTimeMillis

final long completionTimeMillis

Field completionTimeMillis.

Method Detail

Init

public public Init (final ComponentType parkourCheckpointComponentType)

Method Init.

Parameters:
final ComponentType parkourCheckpointComponentType

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

Ticking

public public Ticking (final ComponentType parkourCheckpointComponentType, final ComponentType playerComponentType, final ResourceType, EntityStore>> playerSpatialComponent)

Method Ticking.

Parameters:
final ComponentType parkourCheckpointComponentType
final ComponentType playerComponentType
final ResourceType, EntityStore>> playerSpatialComponent

SystemDependency

public new SystemDependency (Order.AFTER, PlayerSpatialSystem.class, OrderPriority.CLOSEST)

Method SystemDependency.

Parameters:
Order.AFTER Order.AFTER
PlayerSpatialSystem.class PlayerSpatialSystem.class
OrderPriority.CLOSEST OrderPriority.CLOSEST

getDependencies

public Set> getDependencies ()

Method getDependencies.

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

handleCheckpointUpdate

static void handleCheckpointUpdate (@Nonnull final Object2IntMap currentCheckpointByPlayerMap, @Nonnull final Object2LongMap startTimeByPlayerMap, @Nonnull final Player player, final UUID playerUuid, final int checkpointIndex, final int lastIndex)

Method handleCheckpointUpdate.

Parameters:
@Nonnull final Object2IntMap currentCheckpointByPlayerMap
@Nonnull final Object2LongMap startTimeByPlayerMap
@Nonnull final Player player
final UUID playerUuid
final int checkpointIndex
final int lastIndex

EnsureNetworkSendable

public public EnsureNetworkSendable ()

Method EnsureNetworkSendable.

onEntityAdd

public void onEntityAdd (@Nonnull final Holder holder, @Nonnull final AddReason reason, @Nonnull final Store store)

Method onEntityAdd.

Parameters:
@Nonnull final Holder holder
@Nonnull final AddReason reason
@Nonnull final Store store

NetworkId

public new NetworkId (store.getExternalData()

Method NetworkId.

Parameters:
store.getExternalData( store.getExternalData(

onEntityRemoved

public void onEntityRemoved (@Nonnull final Holder holder, @Nonnull final RemoveReason reason, @Nonnull final Store store)

Method onEntityRemoved.

Parameters:
@Nonnull final Holder holder
@Nonnull final RemoveReason reason
@Nonnull final Store store