Class NodesEdgeAction

java.lang.Object
com.hypixel.hytale.builtin.hytalegenerator.graph.edgeactions.EdgeAction
com.hypixel.hytale.builtin.hytalegenerator.graph.edgeactions.NodesEdgeAction

public class NodesEdgeAction extends EdgeAction
  • Constructor Details

    • NodesEdgeAction

      public NodesEdgeAction(@Nonnull NodeAction nodeAction)
  • Method Details

    • run

      public void run(@Nonnull GraphSpace graphSpace, @Nonnull GraphSpace.Edge edge)
      Specified by:
      run in class EdgeAction
    • getInteractionRange

      public double getInteractionRange(double longestConnection)
      Description copied from class: EdgeAction
      Returns the interaction range of this action, measured from one endpoint of the processed edge. The range must cover the farthest graph state this action reads or writes, from either endpoint. The other endpoint can be up to longestConnection away. Work that touches it, or that reaches beyond it, must include that distance in the returned range. Reads and writes confined to the edge itself count as range zero, because an edge only exists while both endpoints are inside the work bounds. If the declared range is too small, generation near region borders is nondeterministic.
      Specified by:
      getInteractionRange in class EdgeAction
      Parameters:
      longestConnection - the longest edge length that can exist in the graph at this pass
    • getLongestCreatedEdgeLength

      public double getLongestCreatedEdgeLength()
      Specified by:
      getLongestCreatedEdgeLength in class EdgeAction
    • getCausalRangeIncrement

      public double getCausalRangeIncrement()
      Specified by:
      getCausalRangeIncrement in class EdgeAction
    • viewAllPossibleContent

      public void viewAllPossibleContent(@Nonnull Consumer<GraphSpace.Content> consumer)
      Specified by:
      viewAllPossibleContent in class EdgeAction