File utils/mapmanipulator.lua
Functions
MapManipulator:get_area () | Gets the VoxelArea for the current VoxelManip. |
MapManipulator:get_data () | Gets the data from the VoxelManip object. |
MapManipulator:get_node (x, z, y) | Gets the node at the given location. |
MapManipulator:new () | Creates a new instance of MapManipulator. |
MapManipulator:set_data (data) | Sets the data into the VoxelManip object. |
MapManipulator:set_node (x, z, y, node) | Sets the node at the given location. |
Functions
- MapManipulator:get_area ()
-
Gets the VoxelArea for the current VoxelManip.
Return value:
The VoxelArea. - MapManipulator:get_data ()
-
Gets the data from the VoxelManip object. The data is an array that can be accessed by using the VoxelArea object.
Return value:
The data. - MapManipulator:get_node (x, z, y)
-
Gets the node at the given location.
Parameters
- x: The x coordinate (width).
- z: the z coordinate (depth).
- y: The y coordinate (height).
Return value:
The node at the given location. - MapManipulator:new ()
-
Creates a new instance of MapManipulator.
Return value:
A new instance. - MapManipulator:set_data (data)
-
Sets the data into the VoxelManip object. Will also correct and update the lighting, the liquids and flush the map.
Parameters
- data: Optional. The data to set. If nil the cached data will be used.
- MapManipulator:set_node (x, z, y, node)
-
Sets the node at the given location.
Parameters
- x: The x coordinate (width).
- z: the z coordinate (depth).
- y: The y coordinate (height).
- node: The node to set.