Class ObjectiveLocationMarkerSystems.TickingSystem
java.lang.Object
com.hypixel.hytale.component.system.System<EntityStore>
com.hypixel.hytale.component.system.tick.TickingSystem<EntityStore>
com.hypixel.hytale.component.system.tick.ArchetypeTickingSystem<EntityStore>
com.hypixel.hytale.component.system.tick.EntityTickingSystem<EntityStore>
com.hypixel.hytale.builtin.adventure.objectives.markers.objectivelocation.ObjectiveLocationMarkerSystems.TickingSystem
- All Implemented Interfaces:
ISystem<EntityStore>,QuerySystem<EntityStore>,TickableSystem<EntityStore>
- Enclosing class:
ObjectiveLocationMarkerSystems
public static class ObjectiveLocationMarkerSystems.TickingSystem
extends EntityTickingSystem<EntityStore>
-
Nested Class Summary
Nested classes/interfaces inherited from class com.hypixel.hytale.component.system.tick.EntityTickingSystem
EntityTickingSystem.SystemTaskData<ECS_TYPE> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Set<Dependency<EntityStore>> private final ComponentType<EntityStore, ObjectiveLocationMarker> private final ComponentType<EntityStore, PlayerRef> private final ResourceType<EntityStore, SpatialResource<Ref<EntityStore>, EntityStore>> private final Query<EntityStore> private final ComponentType<EntityStore, TransformComponent> private final ComponentType<EntityStore, UUIDComponent> private final ComponentType<EntityStore, WeatherTracker> Fields inherited from interface com.hypixel.hytale.component.system.ISystem
EMPTY_ARRAY -
Constructor Summary
ConstructorsConstructorDescriptionTickingSystem(ComponentType<EntityStore, ObjectiveLocationMarker> objectiveLocationMarkerComponentType, ComponentType<EntityStore, PlayerRef> playerRefComponentType, ResourceType<EntityStore, SpatialResource<Ref<EntityStore>, EntityStore>> playerSpatialComponent) -
Method Summary
Modifier and TypeMethodDescriptiongetQuery()booleanisParallel(int archetypeChunkSize, int taskCount) private static booleanisPlayerInSpecificEnvironment(ObjectiveLocationMarker entity, WeatherTracker weatherTracker, TransformComponent transform, ComponentAccessor<EntityStore> componentAccessor) private voidsetupMarker(Store<EntityStore> store, ObjectiveLocationMarker entity, Ref<EntityStore> entityReference, Vector3d position, UUID uuid, CommandBuffer<EntityStore> commandBuffer) voidtick(float dt, int index, ArchetypeChunk<EntityStore> archetypeChunk, Store<EntityStore> store, CommandBuffer<EntityStore> commandBuffer) voidtick(float dt, int systemIndex, Store<EntityStore> store) private static voiduntrackEntityObjectiveForPlayer(ObjectiveLocationMarker entity, UUID playerUUID) private static voidupdateIncomingPlayers(PlayerRef[] playersInArea, int playersInAreaSize, ObjectiveLocationMarker entity, Set<UUID> playerUUIDs, Set<UUID> activePlayerUUIDs, String objectiveId) private static voidupdateOutgoingPlayers(Set<UUID> playersInArea, ObjectiveLocationMarker entity, Set<UUID> activePlayerUUIDs, String objectiveId) Methods inherited from class com.hypixel.hytale.component.system.tick.EntityTickingSystem
doTick, maybeUseParallel, tick, useParallelMethods inherited from class com.hypixel.hytale.component.system.tick.ArchetypeTickingSystem
isExplicitQuery, testMethods inherited from class com.hypixel.hytale.component.system.System
getComponentRegistrations, getResourceRegistrations, registerComponent, registerComponent, registerComponent, registerResource, registerResourceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.hypixel.hytale.component.system.ISystem
getGroup, onSystemRegistered, onSystemUnregistered
-
Field Details
-
objectiveLocationMarkerComponentType
@Nonnull private final ComponentType<EntityStore,ObjectiveLocationMarker> objectiveLocationMarkerComponentType -
playerRefComponentType
-
transformComponentType
-
weatherTrackerComponentType
-
uuidComponentType
-
playerSpatialComponent
@Nonnull private final ResourceType<EntityStore,SpatialResource<Ref<EntityStore>, playerSpatialComponentEntityStore>> -
query
-
dependencies
-
-
Constructor Details
-
TickingSystem
public TickingSystem(@Nonnull ComponentType<EntityStore, ObjectiveLocationMarker> objectiveLocationMarkerComponentType, @Nonnull ComponentType<EntityStore, PlayerRef> playerRefComponentType, @Nonnull ResourceType<EntityStore, SpatialResource<Ref<EntityStore>, EntityStore>> playerSpatialComponent)
-
-
Method Details
-
getDependencies
-
getQuery
-
isParallel
public boolean isParallel(int archetypeChunkSize, int taskCount) - Overrides:
isParallelin classEntityTickingSystem<EntityStore>
-
tick
- Specified by:
tickin interfaceTickableSystem<EntityStore>- Overrides:
tickin classArchetypeTickingSystem<EntityStore>
-
tick
public void tick(float dt, int index, @Nonnull ArchetypeChunk<EntityStore> archetypeChunk, @Nonnull Store<EntityStore> store, @Nonnull CommandBuffer<EntityStore> commandBuffer) - Specified by:
tickin classEntityTickingSystem<EntityStore>
-
setupMarker
private void setupMarker(@Nonnull Store<EntityStore> store, @Nonnull ObjectiveLocationMarker entity, @Nonnull Ref<EntityStore> entityReference, @Nonnull Vector3d position, @Nonnull UUID uuid, @Nonnull CommandBuffer<EntityStore> commandBuffer) -
updateIncomingPlayers
-
updateOutgoingPlayers
-
isPlayerInSpecificEnvironment
private static boolean isPlayerInSpecificEnvironment(@Nonnull ObjectiveLocationMarker entity, @Nonnull WeatherTracker weatherTracker, @Nonnull TransformComponent transform, @Nonnull ComponentAccessor<EntityStore> componentAccessor) -
untrackEntityObjectiveForPlayer
private static void untrackEntityObjectiveForPlayer(@Nonnull ObjectiveLocationMarker entity, @Nonnull UUID playerUUID)
-