Enum Class WorldFolderStructure
- All Implemented Interfaces:
Serializable, Comparable<WorldFolderStructure>, Constable
Describes how a Minecraft world's dimensions are laid out under the server folder.
Each constant carries a human-readable description returned by toString().
dimensionRootFolders(Path, Path) resolves the concrete dimension roots for a
given server and world folder.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionBukkit-style layout with separateworld,world_nether, andworld_the_endfolders beside the server root.Standard Vanilla layout: a single world folder containing the overworld plusDIM1andDIM-1.Vanilla layout introduced in 2026.1 with world data under adimensionssubdirectory. -
Method Summary
Modifier and TypeMethodDescriptiondimensionRootFolders(Path serverFolder, Path worldFolder) Resolves the dimension root folders for this structure under the given server and world paths.toString()Returns the human-readable description of this world folder structure.static WorldFolderStructureReturns the enum constant of this class with the specified name.static WorldFolderStructure[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SINGLE
Standard Vanilla layout: a single world folder containing the overworld plusDIM1andDIM-1. -
PER_DIMENSION
Bukkit-style layout with separateworld,world_nether, andworld_the_endfolders beside the server root. -
SINGLE_2026
Vanilla layout introduced in 2026.1 with world data under adimensionssubdirectory.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
toString
Returns the human-readable description of this world folder structure.- Overrides:
toStringin classEnum<WorldFolderStructure>- Returns:
- the description associated with this constant
-
dimensionRootFolders
Resolves the dimension root folders for this structure under the given server and world paths.The returned paths are the roots that conversion plugins walk for player and world files. For
PER_DIMENSION, sibling nether and end folders are derived from the world folder name. ForSINGLE_2026, dimension and players subpaths under the world folder are returned.- Parameters:
serverFolder- the server root folderworldFolder- the primary world folder fromserver.properties- Returns:
- the dimension (and related) root folders to process; never
null
-