Contents
Class ProximityConnectorNodeAction
java.lang.Object
com.hypixel.hytale.builtin.hytalegenerator.graph.nodeactions.NodeAction
com.hypixel.hytale.builtin.hytalegenerator.graph.nodeactions.ProximityConnectorNodeAction
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionProximityConnectorNodeAction(double range, NodeSelector nodeSelector, int seed, int cap) -
Method Summary
Modifier and TypeMethodDescriptiondoubledoublegetInteractionRange(double longestConnection) Returns the interaction range of this action, measured from the processed node.doublevoidrun(GraphSpace graphSpace, GraphSpace.Node node) voidviewAllPossibleContent(Consumer<GraphSpace.Content> consumer)
-
Field Details
-
NO_CAP
public static final int NO_CAP- See Also:
-
-
Constructor Details
-
ProximityConnectorNodeAction
public ProximityConnectorNodeAction(double range, @Nonnull NodeSelector nodeSelector, int seed, int cap)
-
-
Method Details
-
run
- Specified by:
runin classNodeAction
-
getInteractionRange
public double getInteractionRange(double longestConnection) Description copied from class:NodeActionReturns 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 tolongestConnectionaway 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:
getInteractionRangein classNodeAction- Parameters:
longestConnection- the longest edge length that can exist in the graph at this pass
-
getLongestCreatedEdgeLength
public double getLongestCreatedEdgeLength()- Specified by:
getLongestCreatedEdgeLengthin classNodeAction
-
getCausalRangeIncrement
public double getCausalRangeIncrement()- Specified by:
getCausalRangeIncrementin classNodeAction
-
viewAllPossibleContent
- Specified by:
viewAllPossibleContentin classNodeAction
-