Contents
Class NodeAction
java.lang.Object
com.hypixel.hytale.builtin.hytalegenerator.graph.nodeactions.NodeAction
- Direct Known Subclasses:
ConnectedEdgesNodeAction, ConnectedNodesNodeAction, ContentCopyNodeAction, ContentNodeAction, DeleteNodeAction, EmptyNodeAction, Jitter2DNodeAction, Jitter3DNodeAction, MoveNodeAction, ProximityConnectorNodeAction, SelectorNodeAction, SomeConnectedEdgesNodeAction, SomeConnectedNodesNodeAction, SpawnerNodeAction, WeightedNodeAction
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract doubleabstract doublegetInteractionRange(double longestConnection) Returns the interaction range of this action, measured from the processed node.abstract doubleabstract voidrun(GraphSpace graphSpace, GraphSpace.Node node) abstract voidviewAllPossibleContent(Consumer<GraphSpace.Content> consumer)
-
Constructor Details
-
NodeAction
public NodeAction()
-
-
Method Details
-
run
-
getInteractionRange
public abstract double getInteractionRange(double longestConnection) Returns 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.- Parameters:
longestConnection- the longest edge length that can exist in the graph at this pass
-
getLongestCreatedEdgeLength
public abstract double getLongestCreatedEdgeLength() -
getCausalRangeIncrement
public abstract double getCausalRangeIncrement() -
viewAllPossibleContent
-