Added annotations for minetest.get_value_noise(), marking minetest.get_perlin() as deprecated.

This commit is contained in:
Van
2026-01-18 20:01:39 +03:00
parent 096c706f79
commit 52c171aced

View File

@@ -1128,16 +1128,25 @@ function minetest.find_nodes_in_area(pos1, pos2, node_names, grouped) end
--- ---
--- [View in lua_api.txt](https://github.com/minetest/minetest/blob/5.4.1/doc/lua_api.txt#L4944-L4948) --- [View in lua_api.txt](https://github.com/minetest/minetest/blob/5.4.1/doc/lua_api.txt#L4944-L4948)
function minetest.find_nodes_in_area_under_air(pos1, pos2, nodenames) end function minetest.find_nodes_in_area_under_air(pos1, pos2, nodenames) end
--- * Return world-specific perlin noise. --- * Deprecated: renamed to `core.get_value_noise` in version 5.12.0.
--- * The actual seed used is the noiseparams seed plus the world seed. --- @deprecated
--- --- @param noiseparams NoiseParams
--- [View in lua_api.txt](https://github.com/minetest/minetest/blob/5.4.1/doc/lua_api.txt#L4949-L4951) --- @return ValueNoise
function minetest.get_perlin(noiseparams) end function minetest.get_perlin(noiseparams) end
--- * Deprecated: use `minetest.get_perlin(noiseparams)` instead. --- * Deprecated: renamed to core.get_value_noise in version 5.12.0.
--- * Return world-specific perlin noise. --- @deprecated
--- --- @return ValueNoise
--- [View in lua_api.txt](https://github.com/minetest/minetest/blob/5.4.1/doc/lua_api.txt#L4952-L4954)
function minetest.get_perlin(seeddiff, octaves, persistence, spread) end function minetest.get_perlin(seeddiff, octaves, persistence, spread) end
--- * Return world-specific value noise.
--- * The actual seed used is the noiseparams seed plus the world seed.
--- * **Important**: Requires the mapgen environment to be initalized, do not use at load time.
--- @param noiseparams NoiseParams
--- @return ValueNoise
function minetest.get_value_noise(noiseparams) end
--- * Deprecated: use `core.get_value_noise(noiseparams)` instead.
--- @deprecated
--- @return ValueNoise
function minetest.get_value_noise(seeddiff, octaves, persistence, spread) end
--- * Return voxel manipulator object. --- * Return voxel manipulator object.
--- * Loads the manipulator from the map if positions are passed. --- * Loads the manipulator from the map if positions are passed.
--- ---