Skip to content

Commit 1b419eb

Browse files
committed
Update documentation
1 parent 3530e1a commit 1b419eb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

technic/doc/api.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,17 +64,17 @@ Power tool API
6464
* Callback will be used to get itemstack charge and max\_charge.
6565
* Have to return values `charge, max_charge`.
6666
* E.g. `local charge, maxcharge = itemdef.technic_get_charge(itemstack)`.
67-
* Defaults to `technic.get_RE_charge` which handles tool wear and charge values.
67+
* Defaults to `technic.get_charge` which handles tool wear and charge values.
6868
* `technic_set_charge = function(itemstack, charge) ...`:
6969
* Callback will be used to set itemstack charge.
70-
* Defaults to `technic.set_RE_charge` which handles tool wear and charge values.
71-
* `technic.get_RE_charge(itemstack)`
70+
* Defaults to `technic.set_charge` which handles tool wear and charge values.
71+
* `technic.get_charge(itemstack)`
7272
* Returns current charge level of tool.
7373
* For tool charger mods it is recommended to use `<tooldef>.technic_get_charge(stack)` instead.
74-
* `technic.set_RE_charge(itemstack, charge)`
74+
* `technic.set_charge(itemstack, charge)`
7575
* Sets tool charge level.
7676
* For tool charger mods it is recommended to use `<tooldef>.technic_set_charge(stack, charge)` instead.
77-
* `technic.use_RE_charge(itemstack, charge)`
77+
* `technic.use_charge(itemstack, charge)`
7878
* Attempt to use charge and return `true`/`false` indicating success.
7979
* Always succeeds without checking charge level if creative is enabled.
8080

0 commit comments

Comments
 (0)