Class EdgeSelector

java.lang.Object
com.hypixel.hytale.builtin.hytalegenerator.graph.edgeselectors.EdgeSelector
Direct Known Subclasses:
AllEdgeSelector, AndEdgeSelector, AngleEdgeSelector, LengthEdgeSelector, NodesEdgeSelector, NotEdgeSelector, OrEdgeSelector, RandomEdgeSelector

public abstract class EdgeSelector extends Object
  • Constructor Details

    • EdgeSelector

      public EdgeSelector()
  • Method Details

    • isSelected

      public abstract boolean isSelected(@Nonnull GraphSpace graphSpace, @Nonnull GraphSpace.Edge edge)
    • getInteractionRange

      public abstract double getInteractionRange(double longestConnection)
      Returns the read range of this selector, measured from one endpoint of the processed edge. The range must cover the farthest graph state this selector reads, from either endpoint. The other endpoint can be up to longestConnection away. Reads that touch it, or that reach beyond it, must include that distance in the returned range. 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