From feb853c715d856327c1931e6c93df507ef1cb64c Mon Sep 17 00:00:00 2001 From: DustyDave961 <144002335+DustyDave961@users.noreply.github.com> Date: Sun, 20 Oct 2024 10:16:37 -0500 Subject: [PATCH] Update api.md Radiation functions moved to Radiation section. --- technic/doc/api.md | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/technic/doc/api.md b/technic/doc/api.md index 453f7c2..59bdee9 100644 --- a/technic/doc/api.md +++ b/technic/doc/api.md @@ -145,14 +145,6 @@ Unsorted functions: * Some configuration function * `technic.tube_inject_item(pos, start_pos, velocity, item)` * Same as `pipeworks.tube_inject_item` -* `technic.register_rad_resistance(node_name, resistance)` - * Sets the radiation resistance of the given node. - * `node_name`: name of the node - * `resistance`: number, radiation resistance of the node -* `technic.register_group_resistance(group_name, resistance)` - * Sets the radiation resistance of the given group of nodes. - * `group_name`: name of the group - * `resistance`: number, radiation resistance of the group ### Energy modifiers * `technic.set_RE_wear(itemstack, item_load, max_charge)` @@ -280,6 +272,20 @@ Network functionality: 5. If the total demand is more than the available power all RE nodes will be shut down. We have a brown-out situation. + +## Radiation +* `technic.register_rad_resistance(node_name, resistance)` + * Sets the radiation resistance of the given node. + * `node_name`: name of the node + * `resistance`: number, radiation resistance of the node +* `technic.register_group_resistance(group_name, resistance)` + * Sets the radiation resistance of the given group of nodes. + * `group_name`: name of the group + * `resistance`: number, radiation resistance of the group +* `technic.cache_resistances()` + * Cache radiation resistances after Technic loads. + + ## Deprecated functions Following functions are either no longer used by technic, or are planned to