Contents
Class WildernessTrackerSystems.ComponentAddRemove
java.lang.Object
com.hypixel.hytale.component.system.System<ChunkStore>
com.hypixel.hytale.component.system.RefChangeSystem<ChunkStore, RespawnBlock>
com.hypixel.hytale.builtin.adventure.wilderness.system.WildernessTrackerSystems.ComponentAddRemove
- All Implemented Interfaces:
ISystem<ChunkStore>, QuerySystem<ChunkStore>
- Enclosing class:
WildernessTrackerSystems
public static class WildernessTrackerSystems.ComponentAddRemove
extends RefChangeSystem<ChunkStore, RespawnBlock>
Tracks the addition/removal/modification of RespawnBlock components on BlockState entities.
-
Field Summary
Fields inherited from interface ISystem
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetQuery()voidonComponentAdded(Ref<ChunkStore> ref, RespawnBlock spawn, Store<ChunkStore> store, CommandBuffer<ChunkStore> buffer) Called after a component has been added to an entity and has aComponentTypethat matchesRefChangeSystem.componentType().voidonComponentRemoved(Ref<ChunkStore> ref, RespawnBlock spawn, Store<ChunkStore> store, CommandBuffer<ChunkStore> buffer) Called after a component has been removed from an entity and has aComponentTypethat matchesRefChangeSystem.componentType().voidonComponentSet(Ref<ChunkStore> ref, RespawnBlock oldSpawn, RespawnBlock newSpawn, Store<ChunkStore> store, CommandBuffer<ChunkStore> buffer) 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
-
ComponentAddRemove
public ComponentAddRemove()
-
-
Method Details
-
getQuery
-
componentType
- Specified by:
componentTypein classRefChangeSystem<ChunkStore, RespawnBlock>- Returns:
- the component type that we're listening for changes from
-
onComponentAdded
public void onComponentAdded(@Nonnull Ref<ChunkStore> ref, @Nonnull RespawnBlock spawn, @Nonnull Store<ChunkStore> store, @Nonnull CommandBuffer<ChunkStore> buffer) Description copied from class:RefChangeSystemCalled after a component has been added to an entity and has aComponentTypethat matchesRefChangeSystem.componentType().- Specified by:
onComponentAddedin classRefChangeSystem<ChunkStore, RespawnBlock>- Parameters:
ref- The reference to the affiliated entityspawn- The component instance being addedstore- The store affiliated with the entitybuffer- The command buffer to execute tasks. Note: The command buffer tasks are executed after all systems have processed the component add.
-
onComponentRemoved
public void onComponentRemoved(@Nonnull Ref<ChunkStore> ref, @Nonnull RespawnBlock spawn, @Nonnull Store<ChunkStore> store, @Nonnull CommandBuffer<ChunkStore> buffer) Description copied from class:RefChangeSystemCalled after a component has been removed from an entity and has aComponentTypethat matchesRefChangeSystem.componentType().- Specified by:
onComponentRemovedin classRefChangeSystem<ChunkStore, RespawnBlock>- Parameters:
ref- The reference to the affiliated entityspawn- The component instance being removedstore- The store affiliated with the entitybuffer- The command buffer to execute tasks. Note: The command buffer tasks are executed after all systems have processed the component remove.
-
onComponentSet
public void onComponentSet(@Nonnull Ref<ChunkStore> ref, @Nullable RespawnBlock oldSpawn, @Nonnull RespawnBlock newSpawn, @Nonnull Store<ChunkStore> store, @Nonnull CommandBuffer<ChunkStore> buffer) Description copied from class:RefChangeSystemCalled after a component has been set on an entity and has aComponentTypethat matchesRefChangeSystem.componentType().- Specified by:
onComponentSetin classRefChangeSystem<ChunkStore, RespawnBlock>- Parameters:
ref- The reference to the affiliated entityoldSpawn- The old component instance being replacednewSpawn- The new component instance being setstore- The store affiliated with the entitybuffer- The command buffer to execute tasks. Note: The command buffer tasks are executed after all systems have processed the component set.
-