Class RestoreAdapter

java.lang.Object
com.andrei1058.bedwars.api.server.RestoreAdapter

public abstract class RestoreAdapter extends Object
  • Constructor Details Link icon

    • RestoreAdapter Link icon

      public RestoreAdapter(org.bukkit.plugin.Plugin owner)
      Parameters:
      owner - adapter owner.
  • Method Details Link icon

    • getOwner Link icon

      public org.bukkit.plugin.Plugin getOwner()
      Get adapter owner.
    • onEnable Link icon

      public abstract void onEnable(IArena a)
      Load the world. Arenas will be initialized automatically based on WorldLoadEvent.
    • onRestart Link icon

      public abstract void onRestart(IArena a)
      Restore the world. call new Arena when it's done.
    • onDisable Link icon

      public abstract void onDisable(IArena a)
      Unload the world. This is usually used for /bw unloadArena name
    • onSetupSessionStart Link icon

      public abstract void onSetupSessionStart(ISetupSession s)
      Load the world for setting it up.
    • onSetupSessionClose Link icon

      public abstract void onSetupSessionClose(ISetupSession s)
      Unload the world.
    • onLobbyRemoval Link icon

      public void onLobbyRemoval(@NotNull @NotNull IArena a)
      Remove lobby blocks.
    • isWorld Link icon

      public abstract boolean isWorld(String name)
      Check if given world exists.
    • deleteWorld Link icon

      public abstract void deleteWorld(String name)
      Delete a world.
    • cloneArena Link icon

      public abstract void cloneArena(String name1, String name2)
      Clone an arena world.
    • getWorldsList Link icon

      public abstract List<String> getWorldsList()
      Get world container.
    • convertWorlds Link icon

      public abstract void convertWorlds()
      Convert worlds if it is necessary before loading them. Let them load on BedWars1058 main Thread, so they will be converted before getting loaded.
    • getDisplayName Link icon

      public abstract String getDisplayName()
    • foreachBlockInRegion Link icon

      public void foreachBlockInRegion(@Nullable @Nullable org.bukkit.Location corner1, @Nullable @Nullable org.bukkit.Location corner2, @NotNull @NotNull Consumer<org.bukkit.block.Block> consumer)
    • clearItems Link icon

      public void clearItems(@NotNull @NotNull org.bukkit.World world)