@@ -1674,36 +1674,36 @@ Helper functions
1674
1674
* Useful for storing custom data
1675
1675
* `minetest.is_singleplayer()`
1676
1676
* `minetest.features`
1677
- * table containing API feature flags: `{foo=true, bar=true}`
1677
+ * Table containing API feature flags: `{foo=true, bar=true}`
1678
1678
* `minetest.has_feature(arg)`: returns `boolean, missing_features`
1679
1679
* `arg`: string or table in format `{foo=true, bar=true}`
1680
1680
* `missing_features`: `{foo=true, bar=true}`
1681
- * `minetest.get_player_information(playername)`
1682
- * table containing information about player peer.
1683
-
1684
- Example of `minetest.get_player_information` return value:
1685
-
1686
- {
1687
- address = "127.0.0.1" , -- IP address of client
1688
- ip_version = 4 , -- IPv4 / IPv6
1689
- min_rtt = 0.01, -- minimum round trip time
1690
- max_rtt = 0.2 , -- maximum round trip time
1691
- avg_rtt = 0.02 , -- average round trip time
1692
- min_jitter = 0.01, -- minimum packet time jitter
1693
- max_jitter = 0.5, -- maximum packet time jitter
1694
- avg_jitter = 0.03, -- average packet time jitter
1695
- connection_uptime = 200, -- seconds since client connected
1696
-
1697
- -- following information is available on debug build only!!!
1698
- -- DO NOT USE IN MODS
1699
- --ser_vers = 26 , -- serialization version used by client
1700
- --prot_vers = 23 , -- protocol version used by client
1701
- --major = 0, -- major version number
1702
- --minor = 4, -- minor version number
1703
- --patch = 10, -- patch version number
1704
- --vers_string = "0.4.9-git", -- full version string
1705
- --state = "Active" -- current client state
1706
- }
1681
+ * `minetest.get_player_information(player_name)`: returns a table containing
1682
+ information about player. Example return value:
1683
+ {
1684
+ address = "127.0.0.1", -- IP address of client
1685
+ ip_version = 4, -- IPv4 / IPv6
1686
+ min_rtt = 0.01, -- minimum round trip time
1687
+ max_rtt = 0.2 , -- maximum round trip time
1688
+ avg_rtt = 0.02 , -- average round trip time
1689
+ min_jitter = 0.01, -- minimum packet time jitter
1690
+ max_jitter = 0.5 , -- maximum packet time jitter
1691
+ avg_jitter = 0.03 , -- average packet time jitter
1692
+ connection_uptime = 200, -- seconds since client connected
1693
+
1694
+ -- following information is available on debug build only!!!
1695
+ -- DO NOT USE IN MODS
1696
+ --ser_vers = 26, -- serialization version used by client
1697
+ --prot_vers = 23, -- protocol version used by client
1698
+ --major = 0, -- major version number
1699
+ --minor = 4 , -- minor version number
1700
+ --patch = 10 , -- patch version number
1701
+ --vers_string = "0.4.9-git", -- full version string
1702
+ --state = "Active" -- current client state
1703
+ }
1704
+ * `minetest.mkdir(path)`: returns success.
1705
+ * Creates a directory specified by `path`, creating parent directories
1706
+ if they don't exist.
1707
1707
1708
1708
### Logging
1709
1709
* `minetest.debug(line)`
@@ -2282,11 +2282,8 @@ These functions return the leftover itemstack.
2282
2282
the floor or ceiling
2283
2283
* The first four options are mutually-exclusive; the last in the list takes
2284
2284
precedence over the first.
2285
-
2286
-
2287
-
2288
2285
* `minetest.rotate_node(itemstack, placer, pointed_thing)`
2289
- * calls `rotate_and_place()` with infinitestacks set according to the state of
2286
+ * calls `rotate_and_place()` with infinitestacks set according to the state of
2290
2287
the creative mode setting, and checks for "sneak" to set the `invert_wall`
2291
2288
parameter.
2292
2289
@@ -2306,7 +2303,7 @@ minetest.global_exists(name)
2306
2303
* Any function in the minetest namespace can be called using the syntax
2307
2304
`minetest.env:somefunction(somearguments)`
2308
2305
instead of `minetest.somefunction(somearguments)`
2309
- * Deprecated, but support is not to be dropped soon
2306
+ * Deprecated, but support is not to be dropped soon
2310
2307
2311
2308
### Global tables
2312
2309
* `minetest.registered_items`
0 commit comments