Class RemovalSystem

All Implemented Interfaces:
ISystem<ChunkStore>, RunWhenPausedSystem<ChunkStore>, TickableSystem<ChunkStore>

public class RemovalSystem extends TickingSystem<ChunkStore> implements RunWhenPausedSystem<ChunkStore>
  • Constructor Details

    • RemovalSystem

      public RemovalSystem()
  • Method Details

    • tick

      public void tick(float dt, int systemIndex, @Nonnull Store<ChunkStore> store)
      Description copied from class: TickingSystem
      Required reading: CommandBuffer

      Called once per world tick.

      Specified by:
      tick in interface TickableSystem<ChunkStore>
      Specified by:
      tick in class TickingSystem<ChunkStore>
      Parameters:
      dt - The delta time in seconds.
      systemIndex - The index of this system, used for faster lookups in Store.
    • setupInstanceRemoval

      public static void setupInstanceRemoval(@Nonnull World world, @Nonnull EventTitleConfig eventTitle)
    • shouldRemoveWorld

      public static boolean shouldRemoveWorld(@Nonnull Store<ChunkStore> store)
      Returns whether the conditions on this world mark it for removal.
      Parameters:
      store - The store to check.
      Returns:
      Whether to remove the world.