mirror of
https://github.com/minetest/minetest.git
synced 2025-03-06 20:48:40 +01:00
Note that core.hash_node_position
is not a hash function
This commit is contained in:
parent
415e96184d
commit
58ad604a4b
1 changed files with 2 additions and 1 deletions
|
@ -7456,7 +7456,8 @@ Misc.
|
|||
* This function can be overridden by mods to change the leave message.
|
||||
* `core.hash_node_position(pos)`: returns a 48-bit integer
|
||||
* `pos`: table {x=number, y=number, z=number},
|
||||
* Gives a unique hash number for a node position (16+16+16=48bit)
|
||||
* Gives a unique numeric encoding for a node position (16+16+16=48bit)
|
||||
* Despite the name, this is not a hash function (so it doesn't mix or produce collisions).
|
||||
* `core.get_position_from_hash(hash)`: returns a position
|
||||
* Inverse transform of `core.hash_node_position`
|
||||
* `core.get_item_group(name, group)`: returns a rating
|
||||
|
|
Loading…
Add table
Reference in a new issue