forked from MineClone5/MineClone5
add API documentation to flowlib (part 5)
This commit is contained in:
parent
39ac3f208d
commit
52939ff6a4
|
@ -7,7 +7,6 @@ Return true if a sphere of <radius> at <realpos> collide with node at <nodepos>.
|
||||||
* nodepos: position
|
* nodepos: position
|
||||||
* radius: number
|
* radius: number
|
||||||
|
|
||||||
|
|
||||||
## flowlib.is_water(pos)
|
## flowlib.is_water(pos)
|
||||||
Return true if node at <pos> is water, false overwise.
|
Return true if node at <pos> is water, false overwise.
|
||||||
* pos: position
|
* pos: position
|
||||||
|
@ -38,7 +37,9 @@ Return direction where the water is flowing (to be use to push mobs, items...).
|
||||||
* node: node
|
* node: node
|
||||||
|
|
||||||
## flowlib.move_centre(pos, realpos, node, radius)
|
## flowlib.move_centre(pos, realpos, node, radius)
|
||||||
|
Return the pos of the nearest not water block near from <pos> in a sphere of <radius> at <realpos>.
|
||||||
|
WARNING: This function is never used in mcl2, use at your own risk. The informations described here may be wrong.
|
||||||
* pos: position
|
* pos: position
|
||||||
* realpos: position
|
* realpos: position, position of the entity
|
||||||
* node: node
|
* node: node
|
||||||
* radius: number
|
* radius: number
|
Loading…
Reference in New Issue