Package org.empirewar.orbis
Class OrbisPlatform
java.lang.Object
org.empirewar.orbis.OrbisPlatform
- All Implemented Interfaces:
Orbis
Represents a platform for running the Orbis plugin.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.spongepowered.configurate.ConfigurationNodeconfig()getRegionisedWorld(net.kyori.adventure.key.Key worldId) Gets all regionised worlds.protected abstract InputStreamgetResourceAsStream(String path) Returns the set of all visualising player UUIDs.booleanbooleanisVisualising(UUID uuid) Returns true if the player is currently visualising regions.protected voidload()voidvoidnet.kyori.adventure.text.minimessage.MiniMessagebooleanremoveRegion(Region region) voidvoidvoidsetVisualising(UUID uuid, boolean visualising) Sets whether the player is visualising regions.org.spongepowered.configurate.ConfigurationNodeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.empirewar.orbis.Orbis
dataFolder, getPlayerWorld, hasPermission, logger
-
Constructor Details
-
OrbisPlatform
public OrbisPlatform()
-
-
Method Details
-
miniMessage
public net.kyori.adventure.text.minimessage.MiniMessage miniMessage() -
load
protected void load() -
getResourceAsStream
-
config
public org.spongepowered.configurate.ConfigurationNode config() -
worldsConfig
public org.spongepowered.configurate.ConfigurationNode worldsConfig()- Specified by:
worldsConfigin interfaceOrbis
-
loadWorld
-
loadRegions
- Throws:
IOException
-
saveRegions
- Throws:
IOException
-
saveWorld
-
removeRegion
- Specified by:
removeRegionin interfaceOrbis
-
selectionManager
- Specified by:
selectionManagerin interfaceOrbis
-
getRegionisedWorlds
Description copied from interface:OrbisGets all regionised worlds.- Specified by:
getRegionisedWorldsin interfaceOrbis- Returns:
Setof regionised worlds
-
getRegionisedWorld
- Specified by:
getRegionisedWorldin interfaceOrbis
-
isVisualising
Returns true if the player is currently visualising regions. -
setVisualising
Sets whether the player is visualising regions. -
getVisualisingPlayers
Returns the set of all visualising player UUIDs. -
isTestEnvironment
public boolean isTestEnvironment()
-