public class AdvancementTreeNode
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private Advancement |
advancement |
private AdvancementTreeNode |
ancestor |
private float |
change |
private java.util.List<AdvancementTreeNode> |
children |
private int |
index |
private float |
mod |
private AdvancementTreeNode |
parent |
private float |
shift |
private AdvancementTreeNode |
sibling |
private AdvancementTreeNode |
thread |
private int |
x |
private float |
y |
Constructor and Description |
---|
AdvancementTreeNode(Advancement advancementIn,
AdvancementTreeNode parentIn,
AdvancementTreeNode siblingIn,
int indexIn,
int xIn) |
Modifier and Type | Method and Description |
---|---|
private AdvancementTreeNode |
apportion(AdvancementTreeNode nodeIn) |
private AdvancementTreeNode |
buildSubTree(Advancement advancementIn,
AdvancementTreeNode previous) |
private void |
executeShifts() |
private void |
firstWalk() |
private AdvancementTreeNode |
getAncestor(AdvancementTreeNode p_192326_1_,
AdvancementTreeNode p_192326_2_) |
private AdvancementTreeNode |
getFirstChild() |
private AdvancementTreeNode |
getLastChild() |
static void |
layout(Advancement root) |
private void |
moveSubtree(AdvancementTreeNode nodeIn,
float p_192316_2_) |
private float |
secondWalk(float p_192319_1_,
int p_192319_2_,
float p_192319_3_) |
private void |
thirdWalk(float yIn) |
private void |
updatePosition() |
private final Advancement advancement
private final AdvancementTreeNode parent
private final AdvancementTreeNode sibling
private final int index
private final java.util.List<AdvancementTreeNode> children
private AdvancementTreeNode ancestor
private AdvancementTreeNode thread
private int x
private float y
private float mod
private float change
private float shift
public AdvancementTreeNode(Advancement advancementIn, @Nullable AdvancementTreeNode parentIn, @Nullable AdvancementTreeNode siblingIn, int indexIn, int xIn)
@Nullable private AdvancementTreeNode buildSubTree(Advancement advancementIn, @Nullable AdvancementTreeNode previous)
private void firstWalk()
private float secondWalk(float p_192319_1_, int p_192319_2_, float p_192319_3_)
private void thirdWalk(float yIn)
private void executeShifts()
@Nullable private AdvancementTreeNode getFirstChild()
@Nullable private AdvancementTreeNode getLastChild()
private AdvancementTreeNode apportion(AdvancementTreeNode nodeIn)
private void moveSubtree(AdvancementTreeNode nodeIn, float p_192316_2_)
private AdvancementTreeNode getAncestor(AdvancementTreeNode p_192326_1_, AdvancementTreeNode p_192326_2_)
private void updatePosition()
public static void layout(Advancement root)