Package net.thenextlvl.worlds.api
Interface WorldsProvider
- All Superinterfaces:
org.bukkit.command.CommandExecutor,io.papermc.paper.plugin.lifecycle.event.LifecycleEventOwner,net.kyori.adventure.key.Namespaced,org.bukkit.plugin.Plugin,org.bukkit.command.TabCompleter,org.bukkit.command.TabExecutor
@NullMarked
public interface WorldsProvider
extends org.bukkit.plugin.Plugin
The WorldsProvider is the main API interface that enables interaction with world management
functionalities such as chunk generation, level handling, and world grouping.
It provides access to various tools and services
that facilitate operations on Minecraft world data and configurations.
- Since:
- 2.0.0
-
Method Summary
Modifier and TypeMethodDescriptionProvides access to theGeneratorViewinstance, which allows querying and interacting with the generator-related functionality of plugins, such as verifying the presence of chunk generators or biome providers.default @Nullable net.thenextlvl.perworlds.GroupProviderDeprecated, for removal: This API element is subject to removal in a future version.Worlds does no longer provide PerWorlds anymore.levelBuilder(Path level) Creates aLevel.Builderinstance to configure and build a level from the specified directory.levelBuilder(org.bukkit.World world) Creates aLevel.Builderinstance as a copy of the specifiedWorld.Provides access to theLevelViewfunctionality, which includes operations for managing Minecraft world levels, such as saving, unloading, and retrieving level data.Retrieves theLinkProviderresponsible for managing and retrieving associations between worlds and their respectiveLinkTreestructures.Methods inherited from interface org.bukkit.command.CommandExecutor
onCommandMethods inherited from interface net.kyori.adventure.key.Namespaced
namespaceMethods inherited from interface org.bukkit.plugin.Plugin
getComponentLogger, getConfig, getDataFolder, getDataPath, getDefaultBiomeProvider, getDefaultWorldGenerator, getDescription, getLifecycleManager, getLog4JLogger, getLogger, getName, getPluginLoader, getPluginMeta, getResource, getServer, getSLF4JLogger, isEnabled, isNaggable, onDisable, onEnable, onLoad, reloadConfig, saveConfig, saveDefaultConfig, saveResource, setNaggableMethods inherited from interface org.bukkit.command.TabCompleter
onTabComplete
-
Method Details
-
generatorView
Provides access to theGeneratorViewinstance, which allows querying and interacting with the generator-related functionality of plugins, such as verifying the presence of chunk generators or biome providers.- Returns:
- the
GeneratorViewinstance used for managing and retrieving generator information
-
levelBuilder
Creates aLevel.Builderinstance to configure and build a level from the specified directory. The given level path will be resolved from theworld container.- Parameters:
level- the path representing the level to be built- Returns:
- a
Level.Builderfor configuring and creating the specified level - Since:
- 3.0.0
-
levelBuilder
Creates aLevel.Builderinstance as a copy of the specifiedWorld. This method allows configuration and building of a level based on the given world's properties.- Parameters:
world- the world to create a builder copy from- Returns:
- a
Level.Builderinstance for configuring and modifying the copied level - Since:
- 3.0.0
-
levelView
Provides access to theLevelViewfunctionality, which includes operations for managing Minecraft world levels, such as saving, unloading, and retrieving level data.- Returns:
- the
LevelViewinstance used to interact with world level operations
-
linkProvider
Retrieves theLinkProviderresponsible for managing and retrieving associations between worlds and their respectiveLinkTreestructures. This provider facilitates the creation, querying, and management of links between worlds and their portal relationships.- Returns:
- the
LinkProviderinstance - Since:
- 3.0.0
-
groupProvider
@Contract(pure=true) @Deprecated(forRemoval=true, since="3.3.0") default @Nullable net.thenextlvl.perworlds.GroupProvider groupProvider()Deprecated, for removal: This API element is subject to removal in a future version.Worlds does no longer provide PerWorlds anymore.Retrieves theGroupProviderinstance responsible for managing and interacting with world groups. A group provider facilitates the creation, retrieval, and modification of world groups.- Returns:
- the
GroupProviderinstance, ornullif unsupported (e.g., in environments like Folia) - Since:
- 2.2.0
-