Class SomeConnectedEdgesNodeAction

java.lang.Object
com.hypixel.hytale.builtin.hytalegenerator.graph.nodeactions.NodeAction
com.hypixel.hytale.builtin.hytalegenerator.graph.nodeactions.SomeConnectedEdgesNodeAction

public class SomeConnectedEdgesNodeAction extends NodeAction
  • Constructor Details

    • SomeConnectedEdgesNodeAction

      public SomeConnectedEdgesNodeAction(@Nonnull EdgeAction edgeAction, double ratio, int seed)
  • Method Details

    • run

      public void run(@Nonnull GraphSpace graphSpace, @Nonnull GraphSpace.Node node)
      Specified by:
      run in class NodeAction
    • getInteractionRange

      public double getInteractionRange(double longestConnection)
      Description copied from class: NodeAction
      Returns the interaction range of this action, measured from the processed node. The range must cover the farthest graph state this action reads or writes. State that another node or edge owns counts. A node up to longestConnection away owns the far end of each connected edge. Deleting the processed node, including its edges, counts 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 NodeAction
      Parameters:
      longestConnection - the longest edge length that can exist in the graph at this pass
    • getLongestCreatedEdgeLength

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

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

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