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.
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
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
Ticking
public
public
Ticking
(final ComponentType parkourCheckpointComponentType, final ComponentType playerComponentType, final ResourceType, EntityStore>> playerSpatialComponent)
Method Ticking.
- Parameters:
final ComponentTypeparkourCheckpointComponentTypefinal ComponentTypeplayerComponentTypefinal ResourceTypeplayerSpatialComponent, EntityStore>>
SystemDependency
public
new
SystemDependency
(Order.AFTER, PlayerSpatialSystem.class, OrderPriority.CLOSEST)
Method SystemDependency.
- Parameters:
Order.AFTEROrder.AFTERPlayerSpatialSystem.classPlayerSpatialSystem.classOrderPriority.CLOSESTOrderPriority.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 floatdtfinal intindex@Nonnull final ArchetypeChunkarchetypeChunk@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer
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 Object2IntMapcurrentCheckpointByPlayerMap@Nonnull final Object2LongMapstartTimeByPlayerMap@Nonnull final Playerplayerfinal UUIDplayerUuidfinal intcheckpointIndexfinal intlastIndex
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 Holderholder@Nonnull final AddReasonreason@Nonnull final Storestore
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 Holderholder@Nonnull final RemoveReasonreason@Nonnull final Storestore