Class TrackedPlacement.OnAddRemove

java.lang.Object
com.hypixel.hytale.component.system.System<ChunkStore>
com.hypixel.hytale.component.system.RefSystem<ChunkStore>
com.hypixel.hytale.server.core.modules.interaction.blocktrack.TrackedPlacement.OnAddRemove
All Implemented Interfaces:
ISystem<ChunkStore>, QuerySystem<ChunkStore>
Enclosing class:
TrackedPlacement

public static class TrackedPlacement.OnAddRemove extends RefSystem<ChunkStore>
  • Constructor Details

    • OnAddRemove

      public OnAddRemove()
  • Method Details

    • onEntityAdded

      public void onEntityAdded(@Nonnull Ref<ChunkStore> ref, @Nonnull AddReason reason, @Nonnull Store<ChunkStore> store, @Nonnull CommandBuffer<ChunkStore> commandBuffer)
      Description copied from class: RefSystem
      Called after an entity has been added to a Store and has an Archetype that fulfills the Query provided by QuerySystem.getQuery()}.
      Specified by:
      onEntityAdded in class RefSystem<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.
      commandBuffer - The command buffer to execute tasks. Note: The command buffer tasks are executed after all systems have processed the entity add.
    • onEntityRemove

      public void onEntityRemove(@Nonnull Ref<ChunkStore> ref, @Nonnull RemoveReason reason, @Nonnull Store<ChunkStore> store, @Nonnull CommandBuffer<ChunkStore> commandBuffer)
      Description copied from class: RefSystem
      Called before an entity has been removed from a Store and has an Archetype that fulfills the Query provided by QuerySystem.getQuery()}.
      Specified by:
      onEntityRemove in class RefSystem<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.
      commandBuffer - The command buffer to execute tasks. Note: The command buffer tasks are executed after all systems have processed the entity remove.
    • getQuery

      @Nullable public Query<ChunkStore> getQuery()