Cristiano Magro
2024-08-27 535e04d542520f58a2db8d4d7a222b73e5c96ef1
technic/doc/api.md
@@ -35,6 +35,10 @@
* `technic.is_tier_cable(nodename, tier)`
   * Tells whether the node `nodename` is the cable of the tier `tier`.
   * Short version of `technic.get_cable_tier(nodename) == tier`
* `technic.register_cable_tier(nodename, tier)`
   * Register user defined cable to list of known tier cables.
   * `nodename`: string, name of the node
   * `tier`: string, tier name
## Machines
@@ -156,6 +160,11 @@
   * If `technic.power_tools[itemstack:get_name()]` is `nil` (or `false`), this
     function does nothing, else that value is the maximum charge.
   * The itemstack metadata is changed to contain the charge.
* `technic.get_charge(itemstack)`
   * Returns the charge and max charge of the given itemstack.
   * If the itemstack is not an RE chargeable item, both return values will be zero.
* `technic.set_charge(itemstack, charge)`
   * Modifies the charge of the given itemstack.
### Node-specific
* `technic.get_or_load_node(pos)`