Class AbstractPlatform

java.lang.Object
com.sk89q.worldedit.extension.platform.AbstractPlatform
All Implemented Interfaces:
Platform, Keyed

public abstract class AbstractPlatform extends Object implements Platform
An abstract implementation of Platform.
  • Constructor Details

    • AbstractPlatform

      public AbstractPlatform()
  • Method Details

    • getResourceLoader

      public ResourceLoader getResourceLoader()
      Description copied from interface: Platform
      Return the resource loader.
      Specified by:
      getResourceLoader in interface Platform
      Returns:
      The resource loader
    • getTranslationManager

      public TranslationManager getTranslationManager()
      Specified by:
      getTranslationManager in interface Platform
    • schedule

      public int schedule(long delay, long period, Runnable task)
      Description copied from interface: Platform
      Schedules the given task to be invoked once every period ticks after an initial delay of delay ticks.
      Specified by:
      schedule in interface Platform
      Parameters:
      delay - Delay in server ticks before executing first repeat
      period - Period in server ticks of the task
      task - Task to be executed
      Returns:
      Task id number (-1 if scheduling failed)
    • getWorlds

      public List<? extends World> getWorlds()
      Description copied from interface: Platform
      Get a list of available or loaded worlds.
      Specified by:
      getWorlds in interface Platform
      Returns:
      a list of worlds
    • getDataFixer

      public DataFixer getDataFixer()
      Description copied from interface: Platform
      Get a DataFixer capable of upgrading old data.
      Specified by:
      getDataFixer in interface Platform
      Returns:
      a data fixer, or null if not supported by this platform
    • reload

      public void reload()
      Description copied from interface: Platform
      Reload WorldEdit configuration.
      Specified by:
      reload in interface Platform
    • getTickCount

      public long getTickCount()
      Description copied from interface: Platform
      Get the number of ticks since the server started. On some platforms this value may be an approximation based on the JVM run time.
      Specified by:
      getTickCount in interface Platform
      Returns:
      The number of ticks since the server started.