Interface NodeLayer

All Known Implementing Classes:
NodeTreesLayer

public interface NodeLayer
An interface for making layer-held nodes accessible to parent BookTabs and the BookMain as a whole.
Please implement this interface in any layer types that hold nodes, or things may break!
  • Method Details

    • node

      BookNode node(BookNode node)
      Takes a BookNode and returns a contained node with matching ID
    • getNode

      BookNode getNode(net.minecraft.resources.ResourceLocation key)
      Takes a ResourceLocation and returns a contained node with matching ID
    • nodes

      List<BookNode> nodes()
      Returns:
      A list of all nodes the layer contains.
    • getNodes

      Map<net.minecraft.resources.ResourceLocation,BookNode> getNodes()
      Returns:
      The map of the layer's nodes with IDs attached.
    • streamNodes

      default Stream<BookNode> streamNodes()