Package net.minecraft.advancements
Class TreeNodePosition
java.lang.Object
net.minecraft.advancements.TreeNodePosition
-
Field Summary
Modifier 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
ConstructorDescriptionTreeNodePosition
(AdvancementNode p_301306_, TreeNodePosition p_16568_, TreeNodePosition p_16569_, int p_16570_, int p_16571_) -
Method Summary
Modifier and TypeMethodDescriptionprivate TreeNodePosition
addChild
(AdvancementNode p_301122_, TreeNodePosition p_16591_) private TreeNodePosition
apportion
(TreeNodePosition p_16580_) private void
private void
private void
private TreeNodePosition
getAncestor
(TreeNodePosition p_16585_, TreeNodePosition p_16586_) private void
moveSubtree
(TreeNodePosition p_16582_, float p_16583_) private TreeNodePosition
private TreeNodePosition
static void
run
(AdvancementNode p_301111_) private float
secondWalk
(float p_16576_, int p_16577_, float p_16578_) private void
thirdWalk
(float p_16574_)
-
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 p_301306_, @Nullable TreeNodePosition p_16568_, @Nullable TreeNodePosition p_16569_, int p_16570_, int p_16571_)
-
-
Method Details
-
addChild
@Nullable private TreeNodePosition addChild(AdvancementNode p_301122_, @Nullable TreeNodePosition p_16591_) -
firstWalk
private void firstWalk() -
secondWalk
private float secondWalk(float p_16576_, int p_16577_, float p_16578_) -
thirdWalk
private void thirdWalk(float p_16574_) -
executeShifts
private void executeShifts() -
previousOrThread
-
nextOrThread
-
apportion
-
moveSubtree
-
getAncestor
-
finalizePosition
private void finalizePosition() -
run
-