Package net.minecraft.advancements
Class TreeNodePosition
java.lang.Object
net.minecraft.advancements.TreeNodePosition
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate TreeNodePosition
private float
private final int
private final List
<TreeNodePosition> private float
private final AdvancementNode
private final TreeNodePosition
private final TreeNodePosition
private float
private TreeNodePosition
private int
private float
-
Constructor Summary
ConstructorsConstructorDescriptionTreeNodePosition
(AdvancementNode node, TreeNodePosition parent, TreeNodePosition previousSibling, int childIndex, int x) -
Method Summary
Modifier and TypeMethodDescriptionprivate TreeNodePosition
addChild
(AdvancementNode child, TreeNodePosition previousSibling) private TreeNodePosition
apportion
(TreeNodePosition node) private void
private void
private void
private TreeNodePosition
getAncestor
(TreeNodePosition self, TreeNodePosition other) private void
moveSubtree
(TreeNodePosition node, float shift) private TreeNodePosition
private TreeNodePosition
static void
run
(AdvancementNode rootNode) private float
secondWalk
(float offsetY, int columnX, float subtreeTopY) private void
thirdWalk
(float y)
-
Field Details
-
node
-
parent
-
previousSibling
-
childIndex
private final int childIndex -
children
-
ancestor
-
thread
-
x
private int x -
y
private float y -
mod
private float mod -
change
private float change -
shift
private float shift
-
-
Constructor Details
-
TreeNodePosition
public TreeNodePosition(AdvancementNode node, @Nullable TreeNodePosition parent, @Nullable TreeNodePosition previousSibling, int childIndex, int x)
-
-
Method Details
-
addChild
@Nullable private TreeNodePosition addChild(AdvancementNode child, @Nullable TreeNodePosition previousSibling) -
firstWalk
private void firstWalk() -
secondWalk
private float secondWalk(float offsetY, int columnX, float subtreeTopY) -
thirdWalk
private void thirdWalk(float y) -
executeShifts
private void executeShifts() -
previousOrThread
-
nextOrThread
-
apportion
-
moveSubtree
-
getAncestor
-
finalizePosition
private void finalizePosition() -
run
-