Class NodeSelector

java.lang.Object
com.hypixel.hytale.builtin.hytalegenerator.graph.nodeselectors.NodeSelector
Direct Known Subclasses:
AllNodeSelector, AndNodeSelector, ConnectionCountNodeSelector, ContentNodeSelector, DensityDelimitedNodeSelector, NeighborEdgesNodeSelector, NeighborNodesNodeSelector, NotNodeSelector, OrNodeSelector, RandomNodeSelector

public abstract class NodeSelector extends Object
  • Constructor Details

    • NodeSelector

      public NodeSelector()
  • Method Details

    • isSelected

      public abstract boolean isSelected(@Nonnull GraphSpace graphSpace, @Nonnull GraphSpace.Node node)
    • getInteractionRange

      public abstract double getInteractionRange(double longestConnection)
      Returns the read range of this selector, measured from the processed node. The range must cover the farthest graph state this selector reads. A node up to longestConnection away owns the far end of each connected edge. If the declared range is too small, generation near region borders is nondeterministic.
      Parameters:
      longestConnection - the longest edge length that can exist in the graph at this pass