WorldEditor
interface WorldEditor
DSL interface for editing Bukkit world properties.
This interface provides a type-safe DSL for modifying world settings, including time, weather, game rules, spawn location, difficulty, and more.
Use the World.edit extension function to access this DSL:
world.edit {
time = 6000L // Set to noon
weather = WeatherType.CLEAR
difficulty = Difficulty.HARD
}Content copied to clipboard
Properties
Link copied to clipboard
The difficulty level of the world.
Link copied to clipboard
Controls whether the day-night cycle progresses in the world.
Link copied to clipboard
Controls whether mobs spawn naturally in the world.
Link copied to clipboard
Controls whether weather changes naturally in the world.
Link copied to clipboard
Controls whether players keep their inventory on death.
Link copied to clipboard
The spawn location for the world.
Link copied to clipboard
The current weather type in the world.