Contents
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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract doublegetInteractionRange(double longestConnection) Returns the read range of this selector, measured from the processed node.abstract booleanisSelected(GraphSpace graphSpace, GraphSpace.Node node)
-
Constructor Details
-
NodeSelector
public NodeSelector()
-
-
Method Details
-
isSelected
-
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 tolongestConnectionaway 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
-