Contents
Class WorldSpawnJobSystems.TickingState
java.lang.Object
com.hypixel.hytale.component.system.System<ChunkStore>
com.hypixel.hytale.component.system.RefChangeSystem<ChunkStore, NonTicking<ChunkStore>>
com.hypixel.hytale.server.spawning.world.system.WorldSpawnJobSystems.TickingState
- All Implemented Interfaces:
ISystem<ChunkStore>, QuerySystem<ChunkStore>
- Enclosing class:
WorldSpawnJobSystems
public static class WorldSpawnJobSystems.TickingState
extends RefChangeSystem<ChunkStore, NonTicking<ChunkStore>>
-
Field Summary
Fields inherited from interface ISystem
EMPTY_ARRAY -
Constructor Summary
ConstructorsConstructorDescriptionTickingState(ResourceType<EntityStore, WorldSpawnData> worldSpawnDataResourceType, ComponentType<ChunkStore, SpawnJobData> spawnJobDataComponentType) -
Method Summary
Modifier and TypeMethodDescriptiongetQuery()voidonComponentAdded(Ref<ChunkStore> ref, NonTicking<ChunkStore> component, Store<ChunkStore> store, CommandBuffer<ChunkStore> commandBuffer) NonTickingcomponent was added, so this chunk has become non-ticking.voidonComponentRemoved(Ref<ChunkStore> ref, NonTicking<ChunkStore> component, Store<ChunkStore> store, CommandBuffer<ChunkStore> commandBuffer) NonTickingcomponent was removed, so this chunk has become ticking.voidonComponentSet(Ref<ChunkStore> ref, NonTicking<ChunkStore> oldComponent, NonTicking<ChunkStore> newComponent, Store<ChunkStore> store, CommandBuffer<ChunkStore> commandBuffer) Called after a component has been set on an entity and has aComponentTypethat matchesRefChangeSystem.componentType().Methods inherited from class System
getComponentRegistrations, getResourceRegistrations, registerResource, registerResourceMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ISystem
getDependencies, getGroup, onSystemRegistered, onSystemUnregisteredMethods inherited from interface QuerySystem
getHierarchyScope, test
-
Constructor Details
-
TickingState
public TickingState(ResourceType<EntityStore, WorldSpawnData> worldSpawnDataResourceType, ComponentType<ChunkStore, SpawnJobData> spawnJobDataComponentType)
-
-
Method Details
-
getQuery
-
componentType
- Specified by:
componentTypein classRefChangeSystem<ChunkStore, NonTicking<ChunkStore>>- Returns:
- the component type that we're listening for changes from
-
onComponentAdded
public void onComponentAdded(@Nonnull Ref<ChunkStore> ref, @Nonnull NonTicking<ChunkStore> component, @Nonnull Store<ChunkStore> store, @Nonnull CommandBuffer<ChunkStore> commandBuffer) NonTickingcomponent was added, so this chunk has become non-ticking.- Specified by:
onComponentAddedin classRefChangeSystem<ChunkStore, NonTicking<ChunkStore>>- Parameters:
ref- The reference to the affiliated entitycomponent- The component instance being addedstore- The store affiliated with the entitycommandBuffer- The command buffer to execute tasks. Note: The command buffer tasks are executed after all systems have processed the component add.
-
onComponentSet
public void onComponentSet(@Nonnull Ref<ChunkStore> ref, NonTicking<ChunkStore> oldComponent, @Nonnull NonTicking<ChunkStore> newComponent, @Nonnull Store<ChunkStore> store, @Nonnull CommandBuffer<ChunkStore> commandBuffer) Description copied from class:RefChangeSystemCalled after a component has been set on an entity and has aComponentTypethat matchesRefChangeSystem.componentType().- Specified by:
onComponentSetin classRefChangeSystem<ChunkStore, NonTicking<ChunkStore>>- Parameters:
ref- The reference to the affiliated entityoldComponent- The old component instance being replacednewComponent- The new component instance being setstore- The store affiliated with the entitycommandBuffer- The command buffer to execute tasks. Note: The command buffer tasks are executed after all systems have processed the component set.
-
onComponentRemoved
public void onComponentRemoved(@Nonnull Ref<ChunkStore> ref, @Nonnull NonTicking<ChunkStore> component, @Nonnull Store<ChunkStore> store, @Nonnull CommandBuffer<ChunkStore> commandBuffer) NonTickingcomponent was removed, so this chunk has become ticking.- Specified by:
onComponentRemovedin classRefChangeSystem<ChunkStore, NonTicking<ChunkStore>>- Parameters:
ref- The reference to the affiliated entitycomponent- The component instance being removedstore- The store affiliated with the entitycommandBuffer- The command buffer to execute tasks. Note: The command buffer tasks are executed after all systems have processed the component remove.
-