Class BukkitServerInterface

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

public class BukkitServerInterface extends com.sk89q.worldedit.extension.platform.AbstractPlatform implements com.sk89q.worldedit.extension.platform.MultiUserPlatform
  • Field Details

    • server

      public final org.bukkit.Server server
    • plugin

      public final WorldEditPlugin plugin
  • Constructor Details

    • BukkitServerInterface

      public BukkitServerInterface(WorldEditPlugin plugin, org.bukkit.Server server)
  • Method Details

    • getRegistries

      public com.sk89q.worldedit.world.registry.Registries getRegistries()
      Specified by:
      getRegistries in interface com.sk89q.worldedit.extension.platform.Platform
    • getDataVersion

      public int getDataVersion()
      Specified by:
      getDataVersion in interface com.sk89q.worldedit.extension.platform.Platform
    • getDataFixer

      public com.sk89q.worldedit.world.DataFixer getDataFixer()
      Specified by:
      getDataFixer in interface com.sk89q.worldedit.extension.platform.Platform
      Overrides:
      getDataFixer in class com.sk89q.worldedit.extension.platform.AbstractPlatform
    • isValidMobType

      public boolean isValidMobType(String type)
      Specified by:
      isValidMobType in interface com.sk89q.worldedit.extension.platform.Platform
    • reload

      public void reload()
      Specified by:
      reload in interface com.sk89q.worldedit.extension.platform.Platform
      Overrides:
      reload in class com.sk89q.worldedit.extension.platform.AbstractPlatform
    • schedule

      public int schedule(long delay, long period, Runnable task)
      Specified by:
      schedule in interface com.sk89q.worldedit.extension.platform.Platform
      Overrides:
      schedule in class com.sk89q.worldedit.extension.platform.AbstractPlatform
    • getWatchdog

      public com.sk89q.worldedit.extension.platform.Watchdog getWatchdog()
      Specified by:
      getWatchdog in interface com.sk89q.worldedit.extension.platform.Platform
    • getWorlds

      public List<com.sk89q.worldedit.world.World> getWorlds()
      Specified by:
      getWorlds in interface com.sk89q.worldedit.extension.platform.Platform
      Overrides:
      getWorlds in class com.sk89q.worldedit.extension.platform.AbstractPlatform
    • matchPlayer

      @Nullable public com.sk89q.worldedit.entity.Player matchPlayer(com.sk89q.worldedit.entity.Player player)
      Specified by:
      matchPlayer in interface com.sk89q.worldedit.extension.platform.Platform
    • matchWorld

      @Nullable public BukkitWorld matchWorld(com.sk89q.worldedit.world.World world)
      Specified by:
      matchWorld in interface com.sk89q.worldedit.extension.platform.Platform
    • registerCommands

      public void registerCommands(org.enginehub.piston.CommandManager dispatcher)
      Specified by:
      registerCommands in interface com.sk89q.worldedit.extension.platform.Platform
    • setGameHooksEnabled

      public void setGameHooksEnabled(boolean enabled)
      Specified by:
      setGameHooksEnabled in interface com.sk89q.worldedit.extension.platform.Platform
    • getConfiguration

      public com.sk89q.worldedit.LocalConfiguration getConfiguration()
      Specified by:
      getConfiguration in interface com.sk89q.worldedit.extension.platform.Platform
    • getVersion

      public String getVersion()
      Specified by:
      getVersion in interface com.sk89q.worldedit.extension.platform.Platform
    • getPlatformName

      public String getPlatformName()
      Specified by:
      getPlatformName in interface com.sk89q.worldedit.extension.platform.Platform
    • getPlatformVersion

      public String getPlatformVersion()
      Specified by:
      getPlatformVersion in interface com.sk89q.worldedit.extension.platform.Platform
    • id

      public String id()
      Specified by:
      id in interface com.sk89q.worldedit.registry.Keyed
      Specified by:
      id in interface com.sk89q.worldedit.extension.platform.Platform
    • getCapabilities

      public Map<com.sk89q.worldedit.extension.platform.Capability,com.sk89q.worldedit.extension.platform.Preference> getCapabilities()
      Specified by:
      getCapabilities in interface com.sk89q.worldedit.extension.platform.Platform
    • getSupportedSideEffects

      public Set<com.sk89q.worldedit.util.SideEffect> getSupportedSideEffects()
      Specified by:
      getSupportedSideEffects in interface com.sk89q.worldedit.extension.platform.Platform
    • getTickCount

      public long getTickCount()
      Specified by:
      getTickCount in interface com.sk89q.worldedit.extension.platform.Platform
      Overrides:
      getTickCount in class com.sk89q.worldedit.extension.platform.AbstractPlatform
    • unregisterCommands

      public void unregisterCommands()
    • getConnectedUsers

      public Collection<com.sk89q.worldedit.extension.platform.Actor> getConnectedUsers()
      Specified by:
      getConnectedUsers in interface com.sk89q.worldedit.extension.platform.MultiUserPlatform