Interface WorldInfo
- All Superinterfaces:
FeatureFlagSetHolder, net.kyori.adventure.key.Keyed, Keyed
- All Known Subinterfaces:
World
Holds various information of a World
- Since:
- 1.17.1
-
Method Summary
Modifier and TypeMethodDescriptionGets theWorld.Environmenttype of this worldintGets the maximum height of this world.intGets the minimum height of this world.@NotNull StringgetName()Gets the legacy Bukkit name of this world.longgetSeed()Gets the Seed for this world.@NotNull UUIDgetUID()Gets the Unique ID of this world@NotNull BiomeProviderGet the vanillaBiomeProviderfor this world.Methods inherited from interface FeatureFlagSetHolder
getFeatureFlags, isEnabled
-
Method Details
-
getName
Gets the legacy Bukkit name of this world.This method is considered obsolete and is a candidate for future deprecation. Prefer using
Keyed.getKey()as the world identity.- Returns:
- Bukkit name of this world
- Since:
- 1.17.1
-
getUID
Gets the Unique ID of this world- Returns:
- Unique ID of this world.
- Since:
- 1.17.1
-
getEnvironment
Gets theWorld.Environmenttype of this world- Returns:
- This worlds Environment type
- Since:
- 1.17.1
-
getSeed
long getSeed()Gets the Seed for this world.- Returns:
- This worlds Seed
- Since:
- 1.17.1
-
getMinHeight
int getMinHeight()Gets the minimum height of this world.If the min height is 0, there are only blocks from y=0.
- Returns:
- Minimum height of the world
- Since:
- 1.17.1
-
getMaxHeight
int getMaxHeight()Gets the maximum height of this world.If the max height is 100, there are only blocks from y=0 to y=99.
- Returns:
- Maximum height of the world
- Since:
- 1.17.1
-
vanillaBiomeProvider
Get the vanillaBiomeProviderfor this world.- Returns:
- vanilla biome provider
- Since:
- 1.18.1
-