Class PortalRemovalCondition

java.lang.Object
com.hypixel.hytale.builtin.portals.integrations.PortalRemovalCondition
All Implemented Interfaces:
RemovalCondition

public class PortalRemovalCondition extends Object implements RemovalCondition
  • Field Details

  • Constructor Details

    • PortalRemovalCondition

      public PortalRemovalCondition()
    • PortalRemovalCondition

      public PortalRemovalCondition(double timeLimitSeconds)
  • Method Details

    • hasTimeLimit

      public boolean hasTimeLimit()
    • getElapsedSeconds

      public double getElapsedSeconds(@Nonnull World world)
    • hasTimerStarted

      public boolean hasTimerStarted(@Nonnull World world)
    • getRemainingSeconds

      public double getRemainingSeconds(@Nonnull World world)
    • setRemainingSeconds

      public static void setRemainingSeconds(@Nonnull World world, double seconds)
    • shouldRemoveWorld

      public boolean shouldRemoveWorld(@Nonnull Store<ChunkStore> store)
      Description copied from interface: RemovalCondition
      Tests the world to see whether it should be removed or not.
      Specified by:
      shouldRemoveWorld in interface RemovalCondition
      Parameters:
      store - The world to test.
      Returns:
      Whether to remove the world.