Contents
Class NeighborEdgesNodeSelector
java.lang.Object
com.hypixel.hytale.builtin.hytalegenerator.graph.nodeselectors.NodeSelector
com.hypixel.hytale.builtin.hytalegenerator.graph.nodeselectors.NeighborEdgesNodeSelector
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionNeighborEdgesNodeSelector(EdgeSelector edgeSelector, int selectedNeighborsThreshold) -
Method Summary
Modifier and TypeMethodDescriptiondoublegetInteractionRange(double longestConnection) Returns the read range of this selector, measured from the processed node.booleanisSelected(GraphSpace graphSpace, GraphSpace.Node node)
-
Field Details
-
ALL_NEIGHBORS_THRESHOLD
public static final int ALL_NEIGHBORS_THRESHOLD- See Also:
-
-
Constructor Details
-
NeighborEdgesNodeSelector
public NeighborEdgesNodeSelector(@Nonnull EdgeSelector edgeSelector, int selectedNeighborsThreshold)
-
-
Method Details
-
isSelected
- Specified by:
isSelectedin classNodeSelector
-
getInteractionRange
public double getInteractionRange(double longestConnection) Description copied from class:NodeSelectorReturns 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.- Specified by:
getInteractionRangein classNodeSelector- Parameters:
longestConnection- the longest edge length that can exist in the graph at this pass
-