ObjectivePlayerSetupSystem

public class ObjectivePlayerSetupSystem extends RefSystem

System for handling objectiveplayersetup mechanics. Systems contain game logic that operates on entities with specific component types.

java.lang.Object > RefSystem > ObjectivePlayerSetupSystem

Field Summary

playerComponent

final Player playerComponent

Field playerComponent.

uuidComponent

final UUIDComponent uuidComponent

Field uuidComponent.

objectiveModule

final ObjectivePlugin objectiveModule

Field objectiveModule.

playerUuid

final UUID playerUuid

Field playerUuid.

playerConfigData

final PlayerConfigData playerConfigData

Field playerConfigData.

activeObjectiveUUIDs

final Set activeObjectiveUUIDs

Field activeObjectiveUUIDs.

world

final World world

Field world.

worldName

final String worldName

Field worldName.

perWorldData

final PlayerWorldData perWorldData

Field perWorldData.

config

final ObjectiveGameplayConfig config

Field config.

objectiveLineId

final String objectiveLineId

Field objectiveLineId.

Method Detail

ObjectivePlayerSetupSystem

public public ObjectivePlayerSetupSystem (@Nonnull final ComponentType objectiveHistoryComponentType, @Nonnull final ComponentType playerComponentType)

Method ObjectivePlayerSetupSystem.

Parameters:
@Nonnull final ComponentType objectiveHistoryComponentType
@Nonnull final ComponentType playerComponentType

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