Class AbstractPlatform
java.lang.Object
com.sk89q.worldedit.extension.platform.AbstractPlatform
- All Implemented Interfaces:
Platform
An abstract implementation of
Platform
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet a DataFixer capable of upgrading old data.Return the resource loader.Get a list of available or loaded worlds.void
reload()
Reload WorldEdit configuration.int
Schedules the giventask
to be invoked once everyperiod
ticks after an initial delay ofdelay
ticks.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.sk89q.worldedit.extension.platform.Platform
getCapabilities, getConfiguration, getDataVersion, getPlatformName, getPlatformVersion, getRegistries, getSupportedSideEffects, getVersion, getWatchdog, isValidMobType, matchPlayer, matchWorld, registerCommands, registerGameHooks, setGameHooksEnabled
-
Constructor Details
-
AbstractPlatform
public AbstractPlatform()
-
-
Method Details
-
getResourceLoader
Description copied from interface:Platform
Return the resource loader.- Specified by:
getResourceLoader
in interfacePlatform
- Returns:
- The resource loader
-
getTranslationManager
- Specified by:
getTranslationManager
in interfacePlatform
-
schedule
Description copied from interface:Platform
Schedules the giventask
to be invoked once everyperiod
ticks after an initial delay ofdelay
ticks. -
getWorlds
Description copied from interface:Platform
Get a list of available or loaded worlds. -
getDataFixer
Description copied from interface:Platform
Get a DataFixer capable of upgrading old data.- Specified by:
getDataFixer
in interfacePlatform
- Returns:
- a data fixer, or null if not supported by this platform
-
reload
public void reload()Description copied from interface:Platform
Reload WorldEdit configuration.
-