Contents
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final CodecMapCodec<RemovalCondition> The codec used to parseRemovalConditioninstances.static final RemovalCondition[] -
Method Summary
Modifier and TypeMethodDescriptionbooleanshouldRemoveWorld(Store<ChunkStore> store) Tests the world to see whether it should be removed or not.
-
Field Details
-
CODEC
The codec used to parseRemovalConditioninstances. -
EMPTY
-
-
Method Details
-
shouldRemoveWorld
Tests the world to see whether it should be removed or not.- Parameters:
store- The world to test.- Returns:
- Whether to remove the world.
-