Compare commits

..

3 Commits

Author SHA1 Message Date
2ea8f09092 VoxelManip: add VoxelManip() overload 2026-06-16 13:32:02 +03:00
79e7ea64b4 ValueNoise: pos may be float 2026-06-16 13:31:07 +03:00
142ff444ee ObjectRef: fix annotation get_wield_index() 2026-06-16 13:30:13 +03:00
3 changed files with 4 additions and 3 deletions

View File

@@ -101,7 +101,7 @@ function ObjectRef:get_inventory() end
function ObjectRef:get_wield_list() end
--- returns the wield list index of the wielded item (starting with 1)
--- @return number
--- @return integer
function ObjectRef:get_wield_index() end
--- Returns a copy of the wielded item as an `ItemStack`

View File

@@ -15,11 +15,11 @@
ValueNoise = {}
--- Returns 2D noise value at `pos={x=,y=}`
--- @param pos IntegerPosition2d
--- @param pos Position2d
--- @return number
function ValueNoise:get_2d(pos) end
--- Returns 3D noise value at `pos={x=,y=,z=}`
--- @param pos IntegerPosition
--- @param pos Position
--- @return number
function ValueNoise:get_3d(pos) end

View File

@@ -2,6 +2,7 @@
--- @class VoxelManip
--- @overload fun(pos1:MapVector,pos2:MapVector):VoxelManip
VoxelManip = {}
--- Loads a chunk of map into the VoxelManip object containing the region formed by `p1` and `p2`.