Package ch.njol.skript.bukkitutil
Class WorldUtils
java.lang.Object
ch.njol.skript.bukkitutil.WorldUtils
Utility class for Bukkit worlds
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
getWorldMinHeight
(org.bukkit.World world) Get the minimum height of a world.
-
Constructor Details
-
WorldUtils
public WorldUtils()
-
-
Method Details
-
getWorldMinHeight
public static int getWorldMinHeight(org.bukkit.World world) Get the minimum height of a world.Starting with MC 1.17, minimum world heights are able to be below y=0 (using data packs) and starting with MC 1.18 the minimum world height by default will be y=-64.
The method is new in Spigot/Paper 1.17.1, so if the method does not exist it will return 0 by default.
- Parameters:
world
- World to get min height from- Returns:
- Min height of world, 0 if method does not exist
-