public class ObjectiveLocationMarkerSystems
Class ObjectiveLocationMarkerSystems. Provides objectivelocationmarkersystems functionality for the Hytale server.
java.lang.Object > ObjectiveLocationMarkerSystems
Field Summary
objectiveLocationMarkerComponent
Field objectiveLocationMarkerComponent.
markerAsset
Field markerAsset.
activeObjective
Field activeObjective.
transformComponent
Field transformComponent.
rotation
Field rotation.
modelComponent
Field modelComponent.
model
Field model.
objectLocationMarkerComponent
Field objectLocationMarkerComponent.
objectiveDataStore
Field objectiveDataStore.
world
Field world.
entityReference
Field entityReference.
position
Field position.
uuidComponent
Field uuidComponent.
uuid
Field uuid.
playersInExitArea
Field playersInExitArea.
playersInEntryArea
Field playersInEntryArea.
playerRefComponent
Field playerRefComponent.
playerUuidComponent
Field playerUuidComponent.
playerTransformComponent
Field playerTransformComponent.
playerWeatherTrackerComponent
Field playerWeatherTrackerComponent.
playerUUIDs
Field playerUUIDs.
activePlayerUUIDs
Field activePlayerUUIDs.
objectiveId
Field objectiveId.
objectiveLocationMarkerAsset
Field objectiveLocationMarkerAsset.
objective
Field objective.
objectiveModule
Field objectiveModule.
logger
Field logger.
playerUUID
Field playerUUID.
iterator
Field iterator.
universe
Field universe.
playerRef
Field playerRef.
environmentIndex
Field environmentIndex.
taskId
Field taskId.
Method Detail
InitSystem
Method InitSystem.
- Parameters:
@Nonnull final ComponentTypeobjectiveLocationMarkerComponent
onEntityAdded
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
UntrackObjective
new
UntrackObjective
(objectiveLocationMarkerComponent.activeObjectiveUUID)
Method UntrackObjective.
- Parameters:
objectiveLocationMarkerComponent.activeObjectiveUUIDobjectiveLocationMarkerComponent.activeObjectiveUUID
ModelComponent
new
ModelComponent
(new Model(model.getModelAssetId()
Method ModelComponent.
- Parameters:
newModel(model.getModelAssetId(
onEntityRemove
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
EnsureNetworkSendableSystem
public
EnsureNetworkSendableSystem
()
Method EnsureNetworkSendableSystem.
onEntityAdd
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
new
NetworkId
(store.getExternalData()
Method NetworkId.
- Parameters:
store.getExternalData(store.getExternalData(
onEntityRemoved
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
TickingSystem
public
TickingSystem
(@Nonnull final ComponentType objectiveLocationMarkerComponentType, @Nonnull final ComponentType playerRefComponentType, @Nonnull final ResourceType, EntityStore>> playerSpatialComponent)
Method TickingSystem.
- Parameters:
@Nonnull final ComponentTypeobjectiveLocationMarkerComponentType@Nonnull final ComponentTypeplayerRefComponentType@Nonnull final ResourceTypeplayerSpatialComponent, EntityStore>>
SystemDependency
new
SystemDependency
(Order.AFTER, PlayerSpatialSystem.class, OrderPriority.CLOSEST)
Method SystemDependency.
- Parameters:
Order.AFTEROrder.AFTERPlayerSpatialSystem.classPlayerSpatialSystem.classOrderPriority.CLOSESTOrderPriority.CLOSEST
getDependencies
Set>
getDependencies
()
Method getDependencies.
isParallel
boolean
isParallel
(final int archetypeChunkSize, final int taskCount)
Method isParallel.
- Parameters:
final intarchetypeChunkSizefinal inttaskCount
if
else
if
(!activeObjective.isCompleted()
Method if.
- Parameters:
!activeObjective.isCompleted(!activeObjective.isCompleted(
setupMarker
void
setupMarker
(@Nonnull final Store store, @Nonnull final ObjectiveLocationMarker entity, @Nonnull final Ref entityReference, @Nonnull final Vector3d position, @Nonnull final UUID uuid, @Nonnull final CommandBuffer commandBuffer)
Method setupMarker.
- Parameters:
@Nonnull final Storestore@Nonnull final ObjectiveLocationMarkerentity@Nonnull final RefentityReference@Nonnull final Vector3dposition@Nonnull final UUIDuuid@Nonnull final CommandBuffercommandBuffer
updateIncomingPlayers
void
updateIncomingPlayers
(@Nonnull final PlayerRef[] playersInArea, final int playersInAreaSize, @Nonnull final ObjectiveLocationMarker entity, @Nonnull final Set playerUUIDs, @Nonnull final Set activePlayerUUIDs, @Nonnull final String objectiveId)
Method updateIncomingPlayers.
- Parameters:
@Nonnull final PlayerRef[]playersInAreafinal intplayersInAreaSize@Nonnull final ObjectiveLocationMarkerentity@Nonnull final SetplayerUUIDs@Nonnull final SetactivePlayerUUIDs@Nonnull final StringobjectiveId
TrackOrUpdateObjective
new
TrackOrUpdateObjective
(entity.getActiveObjective()
Method TrackOrUpdateObjective.
- Parameters:
entity.getActiveObjective(entity.getActiveObjective(
updateOutgoingPlayers
void
updateOutgoingPlayers
(@Nonnull final Set playersInArea, @Nonnull final ObjectiveLocationMarker entity, @Nullable final Set activePlayerUUIDs, @Nonnull final String objectiveId)
Method updateOutgoingPlayers.
- Parameters:
@Nonnull final SetplayersInArea@Nonnull final ObjectiveLocationMarkerentity@Nullable final SetactivePlayerUUIDs@Nonnull final StringobjectiveId
isPlayerInSpecificEnvironment
boolean
isPlayerInSpecificEnvironment
(@Nonnull final ObjectiveLocationMarker entity, @Nonnull final WeatherTracker weatherTracker, @Nonnull final TransformComponent transform, @Nonnull final ComponentAccessor componentAccessor)
Method isPlayerInSpecificEnvironment.
- Parameters:
@Nonnull final ObjectiveLocationMarkerentity@Nonnull final WeatherTrackerweatherTracker@Nonnull final TransformComponenttransform@Nonnull final ComponentAccessorcomponentAccessor
untrackEntityObjectiveForPlayer
void
untrackEntityObjectiveForPlayer
(@Nonnull final ObjectiveLocationMarker entity, @Nonnull final UUID playerUUID)
Method untrackEntityObjectiveForPlayer.
- Parameters:
@Nonnull final ObjectiveLocationMarkerentity@Nonnull final UUIDplayerUUID