Contents
Class WildernessTrackerSystems.EntityAddRemove<T extends Component<ChunkStore>>
java.lang.Object
com.hypixel.hytale.component.system.System<ChunkStore>
com.hypixel.hytale.component.system.RefSystem<ChunkStore>
com.hypixel.hytale.builtin.adventure.wilderness.system.WildernessTrackerSystems.EntityAddRemove<T>
- Type Parameters:
T- The block component type to track.
- All Implemented Interfaces:
ISystem<ChunkStore>, QuerySystem<ChunkStore>
- Direct Known Subclasses:
BedMarkerSystems.EntitySystem, BenchMarkerSystems.EntitySystem
- Enclosing class:
WildernessTrackerSystems
public abstract static class WildernessTrackerSystems.EntityAddRemove<T extends Component<ChunkStore>>
extends RefSystem<ChunkStore>
System that handles the addition and removal of block entities that own the given component type.
Implementations should subclass this system providing the
ComponentType and a predicate indicating
whether the block is player-owned or not (owned blocks may provide a greater area of effect).-
Field Summary
Fields inherited from interface ISystem
EMPTY_ARRAY -
Method Summary
Modifier and TypeMethodDescriptionfinal Query<ChunkStore> getQuery()final voidonEntityAdded(Ref<ChunkStore> ref, AddReason reason, Store<ChunkStore> store, CommandBuffer<ChunkStore> buffer) Called after an entity has been added to aStoreand has anArchetypethat fulfills theQueryprovided byQuerySystem.getQuery()}.final voidonEntityRemove(Ref<ChunkStore> ref, RemoveReason reason, Store<ChunkStore> store, CommandBuffer<ChunkStore> buffer) Called before an entity has been removed from aStoreand has anArchetypethat fulfills theQueryprovided byQuerySystem.getQuery()}.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
-
Method Details
-
getQuery
-
onEntityAdded
public final void onEntityAdded(@Nonnull Ref<ChunkStore> ref, @Nonnull AddReason reason, @Nonnull Store<ChunkStore> store, @Nonnull CommandBuffer<ChunkStore> buffer) Description copied from class:RefSystemCalled after an entity has been added to aStoreand has anArchetypethat fulfills theQueryprovided byQuerySystem.getQuery()}.- Specified by:
onEntityAddedin classRefSystem<ChunkStore>- Parameters:
ref- The entity reference of the added entity.reason- The reason for the entity being added.store- The store the entity was added to.buffer- The command buffer to execute tasks. Note: The command buffer tasks are executed after all systems have processed the entity add.
-
onEntityRemove
public final void onEntityRemove(@Nonnull Ref<ChunkStore> ref, @Nonnull RemoveReason reason, @Nonnull Store<ChunkStore> store, @Nonnull CommandBuffer<ChunkStore> buffer) Description copied from class:RefSystemCalled before an entity has been removed from aStoreand has anArchetypethat fulfills theQueryprovided byQuerySystem.getQuery()}.- Specified by:
onEntityRemovein classRefSystem<ChunkStore>- Parameters:
ref- The entity reference of the removed entity.reason- The reason for the entity being removed.store- The store the entity is being removed from.buffer- The command buffer to execute tasks. Note: The command buffer tasks are executed after all systems have processed the entity remove.
-