public final class SuperiorSkyblockAPI
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
calcAllIslands()
Calculate all island worths on the server
|
static void |
createIsland(SuperiorPlayer superiorPlayer,
java.lang.String schemName,
java.math.BigDecimal bonusWorth,
java.math.BigDecimal bonusLevel,
org.bukkit.block.Biome biome,
java.lang.String islandName,
boolean offset)
Create a new island.
|
static void |
createIsland(SuperiorPlayer superiorPlayer,
java.lang.String schemName,
java.math.BigDecimal bonus,
org.bukkit.block.Biome biome,
java.lang.String islandName)
Create a new island.
|
static void |
createIsland(SuperiorPlayer superiorPlayer,
java.lang.String schemName,
java.math.BigDecimal bonus,
org.bukkit.block.Biome biome,
java.lang.String islandName,
boolean offset)
Create a new island.
|
static void |
deleteIsland(Island island)
Delete an island
|
static int |
getAPIVersion() |
static BlockValuesManager |
getBlockValues()
Get the blocks manager of the core.
|
static CommandsManager |
getCommands()
Get the commands manager of the core.
|
static FactoriesManager |
getFactory()
Get the objects factory of the plugin.
|
static GridManager |
getGrid()
Get the grid of the core.
|
static Island |
getIsland(java.lang.String islandName)
Get an island by it's name.
|
static Island |
getIslandAt(org.bukkit.Location location)
Get an island at a location.
|
static Island |
getIslandByUUID(java.util.UUID uuid)
Get an island by it's uuid.
|
static org.bukkit.World |
getIslandsWorld(Island island,
org.bukkit.World.Environment environment)
Get the world of an island by the world's environment.
|
static KeysManager |
getKeys()
Get the keys manager of the core.
|
static MenusManager |
getMenus()
Get the menus manager of the core.
|
static MissionsManager |
getMissions()
Get the missions manager of the core.
|
static ModulesManager |
getModules()
Get the modules manager of the plugin.
|
static SuperiorPlayer |
getPlayer(org.bukkit.entity.Player player)
Get the superior player object from a player instance.
|
static SuperiorPlayer |
getPlayer(java.lang.String name)
Get the superior player object by a player's name.
|
static SuperiorPlayer |
getPlayer(java.util.UUID uuid)
Get the superior player object from a player's uuid.
|
static PlayersManager |
getPlayers()
Get the players manager of the core.
|
static ProvidersManager |
getProviders()
Get the providers manager of the core.
|
static RolesManager |
getRoles()
Get the roles manager of the core.
|
static Schematic |
getSchematic(java.lang.String name)
Get a schematic object by its name
|
static SchematicManager |
getSchematics()
Get the schematics manager of the core.
|
static SettingsManager |
getSettings()
Get the settings of the plugin.
|
static Island |
getSpawnIsland()
Get the spawn island.
|
static StackedBlocksManager |
getStackedBlocks()
Get the stacked-blocks manager of the core.
|
static SuperiorSkyblock |
getSuperiorSkyblock()
Get the plugin instance.
|
static UpgradesManager |
getUpgrades()
Get the upgrades manager of the core.
|
static void |
registerCommand(SuperiorCommand superiorCommand)
Register a sub-command.
|
static void |
setPluginInstance(SuperiorSkyblock plugin)
Set the plugin's instance for the API.
|
static void |
setSpawnersProvider(SpawnersProvider spawnersProvider)
Set custom spawners provider for the plugin.
|
public static SuperiorSkyblock getSuperiorSkyblock()
public static void setPluginInstance(SuperiorSkyblock plugin)
plugin
- The instance of the plugin to set to the API.public static int getAPIVersion()
public static SuperiorPlayer getPlayer(org.bukkit.entity.Player player)
@Nullable public static SuperiorPlayer getPlayer(java.lang.String name)
public static SuperiorPlayer getPlayer(java.util.UUID uuid)
uuid
- player uuidpublic static void createIsland(SuperiorPlayer superiorPlayer, java.lang.String schemName, java.math.BigDecimal bonus, org.bukkit.block.Biome biome, java.lang.String islandName)
superiorPlayer
- owner of the islandschemName
- the schematic of the island to be pastedbonus
- The default island bonus levelbiome
- The default island biomeislandName
- The island namepublic static void createIsland(SuperiorPlayer superiorPlayer, java.lang.String schemName, java.math.BigDecimal bonus, org.bukkit.block.Biome biome, java.lang.String islandName, boolean offset)
superiorPlayer
- The new owner for the island.schemName
- The schematic that should be used.bonus
- A starting worth for the island.biome
- A starting biome for the island.islandName
- The name of the new island.offset
- Should the island have an offset for it's values? If disabled, the bonus will be given.public static void createIsland(SuperiorPlayer superiorPlayer, java.lang.String schemName, java.math.BigDecimal bonusWorth, java.math.BigDecimal bonusLevel, org.bukkit.block.Biome biome, java.lang.String islandName, boolean offset)
superiorPlayer
- The new owner for the island.schemName
- The schematic that should be used.bonusWorth
- A starting worth for the island.bonusLevel
- A starting level for the island.biome
- A starting biome for the island.islandName
- The name of the new island.offset
- Should the island have an offset for it's values? If disabled, the bonus will be given.public static void deleteIsland(Island island)
@Nullable public static Island getIsland(java.lang.String islandName)
@Nullable public static Island getIslandByUUID(java.util.UUID uuid)
public static Island getSpawnIsland()
@Nullable public static org.bukkit.World getIslandsWorld(Island island, org.bukkit.World.Environment environment)
@Nullable public static Island getIslandAt(org.bukkit.Location location)
public static void calcAllIslands()
@Nullable public static Schematic getSchematic(java.lang.String name)
public static void setSpawnersProvider(SpawnersProvider spawnersProvider)
spawnersProvider
- The spawner provider to set.public static void registerCommand(SuperiorCommand superiorCommand)
superiorCommand
- The sub command to register.public static GridManager getGrid()
public static StackedBlocksManager getStackedBlocks()
public static BlockValuesManager getBlockValues()
public static SchematicManager getSchematics()
public static PlayersManager getPlayers()
public static RolesManager getRoles()
public static MissionsManager getMissions()
public static MenusManager getMenus()
public static KeysManager getKeys()
public static ProvidersManager getProviders()
public static UpgradesManager getUpgrades()
public static CommandsManager getCommands()
public static SettingsManager getSettings()
public static FactoriesManager getFactory()
public static ModulesManager getModules()