Schnittstelle NodeBuilder<T>

Alle bekannten Implementierungsklassen:
AddBuilder, ConstantBuilder, MultiplyBuilder

public interface NodeBuilder<T>
  • Methodenübersicht

    Modifikator und Typ
    Methode
    Beschreibung
    Compute the node's output value from its inputs.
    default net.minecraft.network.chat.Component
    Optional display name (used in title bar).
    Return the pins this node should have (input and output).
    boolean
    Render custom UI inside the node.
    default void
    setNode(Node<T> node)
    Called after the node is created to give the builder its owning node.
  • Methodendetails

    • getPins

      List<NodePin<T>> getPins()
      Return the pins this node should have (input and output).
    • render

      boolean render()
      Render custom UI inside the node. Returns true if the value changed.
    • evaluate

      T evaluate()
      Compute the node's output value from its inputs.
    • getDisplayName

      default net.minecraft.network.chat.Component getDisplayName()
      Optional display name (used in title bar).
    • setNode

      default void setNode(Node<T> node)
      Called after the node is created to give the builder its owning node.