Contents
Class DeleteNodeAction
java.lang.Object
com.hypixel.hytale.builtin.hytalegenerator.graph.nodeactions.NodeAction
com.hypixel.hytale.builtin.hytalegenerator.graph.nodeactions.DeleteNodeAction
-
Constructor Summary
Constructors -
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)
-
Constructor Details
-
DeleteNodeAction
public DeleteNodeAction()
-
-
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
-