Skip to content

Arboreal Extractor Tree Structures (Thermal Expansion)

Description

Controls what valid log blocks and leaf blocks are to define a tree structure which the Arboreal Extractor can function on. The "tree" must contain some number of leaves adjacent to the log blocks to be valid.

Identifier

Refer to this via any of the following:

groovy
mods.thermal.tapper_tree
mods.thermal.tappertree
mods.thermal.tapperTree
mods.thermal.TapperTree
mods.thermalexpansion.tapper_tree/* Used as page default */
mods.thermalexpansion.tappertree
mods.thermalexpansion.tapperTree
mods.thermalexpansion.TapperTree

Adding Entries

  • Adds recipes in the format log, leaf:

    groovy
    mods.thermalexpansion.tapper_tree.add(IBlockState, IBlockState)
Example
groovy
mods.thermalexpansion.tapper_tree.add(blockstate('minecraft:clay'), blockstate('minecraft:gold_block'))

Removing Entries

  • Removes all entries with the given IBlockState as a leaf:

    groovy
    mods.thermalexpansion.tapper_tree.removeByLeaf(BlockWrapper)
  • Removes all entries with the given IBlockState as a leaf:

    groovy
    mods.thermalexpansion.tapper_tree.removeByLeaf(IBlockState)
  • Removes all entries with the given IBlockState as a log:

    groovy
    mods.thermalexpansion.tapper_tree.removeByLog(BlockWrapper)
  • Removes all entries with the given IBlockState as a log:

    groovy
    mods.thermalexpansion.tapper_tree.removeByLog(IBlockState)
  • Removes all registered recipes:

    groovy
    mods.thermalexpansion.tapper_tree.removeAll()
Example
groovy
mods.thermalexpansion.tapper_tree.removeByLeaf(blockstate('minecraft:leaves', 'variant=birch'))
mods.thermalexpansion.tapper_tree.removeByLog(blockstate('minecraft:log', 'variant=spruce'))
mods.thermalexpansion.tapper_tree.removeAll()

Getting the value of entries

  • Iterates through every entry in the registry, with the ability to call remove on any element to remove it:

    groovy
    mods.thermalexpansion.tapper_tree.streamRecipes()

Contributors

Changelog

© 2024 CleanroomMC. All Rights Reserved.