Overview
TheGridManager interface handles all island-related operations including creation, deletion, retrieval, and grid management. Access it via SuperiorSkyblockAPI.getGrid().
Island Creation
Create a new island.Parameters:
superiorPlayer- The new owner for the islandschemName- The schematic that should be usedbonus- A starting worth for the islandbiome- A starting biome for the islandislandName- The name of the new island
Create a new island with offset option.Parameters:
superiorPlayer- The new owner for the islandschemName- The schematic that should be usedbonus- A starting worth for the islandbiome- A starting biome for the islandislandName- The name of the new islandoffset- Should the island have an offset for its values? If disabled, the bonus will be given
Create a new island with separate worth and level bonuses.Parameters:
superiorPlayer- The new owner for the islandschemName- The schematic that should be usedbonusWorth- A starting worth for the islandbonusLevel- A starting level for the islandbiome- A starting biome for the islandislandName- The name of the new islandoffset- Should the island have an offset for its values? If disabled, the bonus will be given
createIsland(SuperiorPlayer, String, BigDecimal, BigDecimal, Biome, String, boolean, @Nullable BlockOffset)
void
Create a new island with spawn offset.Parameters:
superiorPlayer- The new owner for the islandschemName- The schematic that should be usedbonusWorth- A starting worth for the islandbonusLevel- A starting level for the islandbiome- A starting biome for the islandislandName- The name of the new islandoffset- Should the island have an offset for its values? If disabled, the bonus will be givenspawnOffset- The offset to teleport the player to from the center of the schematic
Create a new island using a builder.Parameters:
builder- The builder for the islandbiome- A starting biome for the islandoffset- Should the island have an offset for its values? If disabled, the bonus will be given
Create a new island using a builder with spawn offset.Parameters:
builder- The builder for the islandbiome- A starting biome for the islandoffset- Should the island have an offset for its values? If disabled, the bonus will be givenspawnOffset- The offset to teleport the player to from the center of the schematic
Island Creation Algorithm
Set the creation algorithm for islands.Parameters:
islandCreationAlgorithm- The new algorithm to set. If null, the default one will be used
Get the currently used island creation algorithm.Returns: The current island creation algorithm
Checks if a player has an active request for creating an island.Parameters:
superiorPlayer- The player to check
Island Preview
Start the island preview task for a specific player.Parameters:
superiorPlayer- The player to start preview forschemName- The schematic to previewislandName- The requested island name by the player
Cancel the island preview for a specific player.Parameters:
superiorPlayer- The player to cancel preview for
Cancel all active island previews.
Check if a player has an ongoing island preview task.Parameters:
superiorPlayer- The player to check
Island Deletion
Delete an island.Parameters:
island- The island to delete
Island Retrieval
Get the island in a specific position from one of the top lists. Positions start from 0.Parameters:
position- The position to checksortingType- The sorting type that should be considered
Get the position of an island. Positions start from 0.Parameters:
island- The island to checksortingType- The sorting type that should be considered
Get an island by its UUID.Parameters:
uuid- The UUID of the island
Get an island by its name.Parameters:
islandName- The name to check
Get an island at an exact position in the world.Parameters:
location- The position to check
Get all the islands from a chunk.Parameters:
chunk- The chunk to check
Get the amount of islands.Returns: The total number of islands
Get the spawn island object.Returns: The spawn island
Island Lists
Get all the islands unordered.Returns: List of all islands
Get all the islands ordered by a specific sorting type.Parameters:
sortingType- The sorting type to order the list by
Island Sorting
Sort the islands.Parameters:
sortingType- The sorting type to use
Sort the islands with callback.Parameters:
sortingType- The sorting type to useonFinish- Callback runnable executed when sorting completes
Add a new sorting type to the registry of islands.Parameters:
sortingType- The new sorting type to register
World Management
Get the world of an island by the dimension. If the dimension is disabled in config, null will be returned.Parameters:
island- The island to checkdimension- The world dimension
Get the dimension of an islands world. If the world is not an islands world, null will be returned.Parameters:
world- The world to check
Get the WorldInfo of the world of an island by the dimension. The world might not be loaded at the time of calling this method.Parameters:
island- The island to checkdimension- The world dimension
Get the WorldInfo of the world of an island by its name. The world might not be loaded at the time of calling this method.Parameters:
island- The island to checkworldName- The name of the world
Checks if the given world is an islands world (normal, nether, or end if enabled).Parameters:
world- The world to check
Register a world as an islands world. This will add all protections to that world, however - no islands will be physically there.Parameters:
world- The world to register as an islands world
Get all registered worlds.Returns: List of all registered island worlds
Island Calculations
Calculate the worth of all the islands on the server.
Calculate the worth of all the islands on the server with callback.Parameters:
callback- Runnable that will be ran when process is finished
Get the total worth of all the islands. This value is updated every minute, so it might not be 100% accurate.Returns: The total worth of all islands
Get the total level of all the islands. This value is updated every minute, so it might not be 100% accurate.Returns: The total level of all islands
Island Purge
Make the island to be deleted when server stops.Parameters:
island- The island to delete
Remove the island from being deleted when server stops.Parameters:
island- The island to keep
Check if the island will be deleted when the server stops.Parameters:
island- The island to check
Get all the islands that will be deleted when the server stops.Returns: List of islands scheduled for purge
Grid Position
Get the position of the last island that was generated.Returns: The position of the last generated island
Set the position of the last island. Warning: Do not use this method unless you know what you’re doing.Parameters:
blockPosition- The position to set
Islands Container
Get the islands container.Returns: The current islands container
Set a new islands container.Parameters:
islandsContainer- The new islands container to set