Contents
Class PortalRemovalCondition
java.lang.Object
com.hypixel.hytale.builtin.portals.integrations.PortalRemovalCondition
- All Implemented Interfaces:
RemovalCondition
-
Field Summary
FieldsFields inherited from interface RemovalCondition
EMPTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublegetElapsedSeconds(World world) doublegetRemainingSeconds(World world) booleanbooleanhasTimerStarted(World world) static voidsetRemainingSeconds(World world, double seconds) booleanshouldRemoveWorld(Store<ChunkStore> store) Tests the world to see whether it should be removed or not.
-
Field Details
-
CODEC
-
-
Constructor Details
-
PortalRemovalCondition
public PortalRemovalCondition() -
PortalRemovalCondition
public PortalRemovalCondition(double timeLimitSeconds)
-
-
Method Details
-
hasTimeLimit
public boolean hasTimeLimit() -
getElapsedSeconds
-
hasTimerStarted
-
getRemainingSeconds
-
setRemainingSeconds
-
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.
-