Class OrbisPlatform

java.lang.Object
org.empirewar.orbis.OrbisPlatform
All Implemented Interfaces:
Orbis

public abstract class OrbisPlatform extends Object implements Orbis
Represents a platform for running the Orbis plugin.
  • Constructor Details

    • OrbisPlatform

      public OrbisPlatform()
  • Method Details

    • miniMessage

      public net.kyori.adventure.text.minimessage.MiniMessage miniMessage()
    • load

      protected void load()
    • getResourceAsStream

      protected abstract InputStream getResourceAsStream(String path)
    • config

      public org.spongepowered.configurate.ConfigurationNode config()
      Specified by:
      config in interface Orbis
    • worldsConfig

      public org.spongepowered.configurate.ConfigurationNode worldsConfig()
      Specified by:
      worldsConfig in interface Orbis
    • loadWorld

      public void loadWorld(net.kyori.adventure.key.Key world, UUID worldId)
    • loadRegions

      public void loadRegions() throws IOException
      Throws:
      IOException
    • saveRegions

      public void saveRegions() throws IOException
      Throws:
      IOException
    • saveWorld

      public void saveWorld(net.kyori.adventure.key.Key world, UUID worldId)
    • removeRegion

      public boolean removeRegion(Region region)
      Specified by:
      removeRegion in interface Orbis
    • selectionManager

      public SelectionManager selectionManager()
      Specified by:
      selectionManager in interface Orbis
    • getRegionisedWorlds

      public Set<RegionisedWorld> getRegionisedWorlds()
      Description copied from interface: Orbis
      Gets all regionised worlds.
      Specified by:
      getRegionisedWorlds in interface Orbis
      Returns:
      Set of regionised worlds
    • getRegionisedWorld

      public RegionisedWorld getRegionisedWorld(net.kyori.adventure.key.Key worldId)
      Specified by:
      getRegionisedWorld in interface Orbis
    • isVisualising

      public boolean isVisualising(UUID uuid)
      Returns true if the player is currently visualising regions.
    • setVisualising

      public void setVisualising(UUID uuid, boolean visualising)
      Sets whether the player is visualising regions.
    • getVisualisingPlayers

      public Set<UUID> getVisualisingPlayers()
      Returns the set of all visualising player UUIDs.
    • isTestEnvironment

      public boolean isTestEnvironment()