provide

abstract fun provide(index: Int, zoneX: Int, zoneZ: Int, level: Int): RebuildRegionZone?

Provides a zone that the client must copy based on the parameters. This 'provide' function will be called with the relative-to-worldentity zone coordinates, so starting with 0,0 and ending before sizeX,sizeZ. The server is responsible for looking up the actual zone that was copied for that world entity. In order to calculate the mapsquare id for xtea keys, use getMapsquareId.

Return

the zone to be copied, or null if there's no zone to be copied there.

Parameters

zoneX

the x coordinate of the static zone to be copied

zoneZ

the z coordinate of the static zone to be copied

level

the level of the static zone to be copied