Interface RemovalCondition

All Known Implementing Classes:
IdleTimeoutCondition, PortalRemovalCondition, TimeoutCondition, WorldEmptyCondition

public interface RemovalCondition
A test against a world to see whether it should be removed or not.

Removal conditions are checked against the world once every tick so should try to remain as light weight as possible.

  • Field Details

  • Method Details

    • shouldRemoveWorld

      boolean shouldRemoveWorld(@Nonnull Store<ChunkStore> store)
      Tests the world to see whether it should be removed or not.
      Parameters:
      store - The world to test.
      Returns:
      Whether to remove the world.