Class InstanceBlock.OnRemove

All Implemented Interfaces:
ISystem<ChunkStore>, QuerySystem<ChunkStore>
Enclosing class:
InstanceBlock

public static class InstanceBlock.OnRemove extends RefSystem<ChunkStore>
  • Constructor Details

    • OnRemove

      public OnRemove()
  • 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()