updateBuildArea

fun updateBuildArea(worldId: Int, buildArea: BuildArea)

Updates the build area of a given world to the specified one. This will ensure that no players outside of this box will be added to high resolution view.

Parameters

worldId

the id of the world to set the build area of, with -1 being the root world.

buildArea

the build area to assign.


fun updateBuildArea(worldId: Int, zoneX: Int, zoneZ: Int, widthInZones: Int = BuildArea.DEFAULT_BUILD_AREA_SIZE, heightInZones: Int = BuildArea.DEFAULT_BUILD_AREA_SIZE)

Updates the build area of a given world to the specified one. This will ensure that no players outside of this box will be added to high resolution view.

Parameters

worldId

the id of the world to set the build area of, with -1 being the root world.

zoneX

the south-western zone x coordinate of the build area

zoneZ

the south-western zone z coordinate of the build area

widthInZones

the build area width in zones (typically 13, meaning 104 tiles)

heightInZones

the build area height in zones (typically 13, meaning 104 tiles)