Package net.minecraft.advancement
Class AdvancementPositioner
java.lang.Object
net.minecraft.advancement.AdvancementPositioner
public class AdvancementPositioner extends Object
-
Field Summary
Fields Modifier and Type Field Description private Advancement
advancement
private List<AdvancementPositioner>
children
private int
childrenSize
private int
depth
private float
field_1265
private float
field_1266
private AdvancementPositioner
optionalLast
private AdvancementPositioner
parent
private AdvancementPositioner
previousSibling
private float
relativeRowInSiblings
private float
row
private AdvancementPositioner
substituteChild
-
Constructor Summary
Constructors Constructor Description AdvancementPositioner(Advancement advancement, AdvancementPositioner parent, AdvancementPositioner previousSibling, int childrenSize, int depth)
-
Method Summary
Modifier and Type Method Description private void
apply()
static void
arrangeForTree(Advancement root)
private void
calculateRecursively()
private AdvancementPositioner
findChildrenRecursively(Advancement advancement, AdvancementPositioner lastChild)
private float
findMinRowRecursively(float deltaRow, int depth, float minRow)
private AdvancementPositioner
getFirstChild()
private AdvancementPositioner
getLast(AdvancementPositioner advancementPositioner, AdvancementPositioner advancementPositioner2)
private AdvancementPositioner
getLastChild()
private void
increaseRowRecursively(float deltaRow)
private AdvancementPositioner
onFinishCalculation(AdvancementPositioner last)
private void
onFinishChildrenCalculation()
private void
pushDown(AdvancementPositioner advancementPositioner, float extraRowDistance)
-
Field Details
-
advancement
-
parent
-
previousSibling
-
childrenSize
private final int childrenSize -
children
-
optionalLast
-
substituteChild
-
depth
private int depth -
row
private float row -
relativeRowInSiblings
private float relativeRowInSiblings -
field_1266
private float field_1266 -
field_1265
private float field_1265
-
-
Constructor Details
-
AdvancementPositioner
public AdvancementPositioner(Advancement advancement, @Nullable AdvancementPositioner parent, @Nullable AdvancementPositioner previousSibling, int childrenSize, int depth)
-
-
Method Details
-
findChildrenRecursively
@Nullable private AdvancementPositioner findChildrenRecursively(Advancement advancement, @Nullable AdvancementPositioner lastChild) -
calculateRecursively
private void calculateRecursively() -
findMinRowRecursively
private float findMinRowRecursively(float deltaRow, int depth, float minRow) -
increaseRowRecursively
private void increaseRowRecursively(float deltaRow) -
onFinishChildrenCalculation
private void onFinishChildrenCalculation() -
getFirstChild
-
getLastChild
-
onFinishCalculation
-
pushDown
-
getLast
private AdvancementPositioner getLast(AdvancementPositioner advancementPositioner, AdvancementPositioner advancementPositioner2) -
apply
private void apply() -
arrangeForTree
-