Contents
Class NodesEdgeAction
java.lang.Object
com.hypixel.hytale.builtin.hytalegenerator.graph.edgeactions.EdgeAction
com.hypixel.hytale.builtin.hytalegenerator.graph.edgeactions.NodesEdgeAction
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubledoublegetInteractionRange(double longestConnection) Returns the interaction range of this action, measured from one endpoint of the processed edge.doublevoidrun(GraphSpace graphSpace, GraphSpace.Edge edge) voidviewAllPossibleContent(Consumer<GraphSpace.Content> consumer)
-
Constructor Details
-
NodesEdgeAction
-
-
Method Details
-
run
- Specified by:
runin classEdgeAction
-
getInteractionRange
public double getInteractionRange(double longestConnection) Description copied from class:EdgeActionReturns the interaction range of this action, measured from one endpoint of the processed edge. The range must cover the farthest graph state this action reads or writes, from either endpoint. The other endpoint can be up tolongestConnectionaway. Work that touches it, or that reaches beyond it, must include that distance in the returned range. Reads and writes confined to the edge itself count 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 classEdgeAction- Parameters:
longestConnection- the longest edge length that can exist in the graph at this pass
-
getLongestCreatedEdgeLength
public double getLongestCreatedEdgeLength()- Specified by:
getLongestCreatedEdgeLengthin classEdgeAction
-
getCausalRangeIncrement
public double getCausalRangeIncrement()- Specified by:
getCausalRangeIncrementin classEdgeAction
-
viewAllPossibleContent
- Specified by:
viewAllPossibleContentin classEdgeAction
-