Contents
Class WorldEmptyCondition
java.lang.Object
com.hypixel.hytale.builtin.instances.removal.WorldEmptyCondition
- All Implemented Interfaces:
RemovalCondition
Removes the world once all players have left.
Only triggers after at least one player has joined.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BuilderCodec<WorldEmptyCondition> static final WorldEmptyConditionstatic final RemovalCondition[]Fields inherited from interface RemovalCondition
EMPTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanshouldRemoveWorld(Store<ChunkStore> store) Tests the world to see whether it should be removed or not.
-
Field Details
-
INSTANCE
-
REMOVE_WHEN_EMPTY
-
CODEC
-
-
Constructor Details
-
WorldEmptyCondition
public WorldEmptyCondition() -
WorldEmptyCondition
public WorldEmptyCondition(double timeoutSeconds)
-
-
Method Details
-
shouldRemoveWorld
Description copied from interface:RemovalConditionTests the world to see whether it should be removed or not.- Specified by:
shouldRemoveWorldin interfaceRemovalCondition- Parameters:
store- The world to test.- Returns:
- Whether to remove the world.
-