@Environment(value=CLIENT) public class AdvancementWidget extends DrawableHelper
Modifier and Type | Field and Description |
---|---|
private Advancement |
advancement |
private List<AdvancementWidget> |
children |
private MinecraftClient |
client |
private List<OrderedText> |
description |
private AdvancementDisplay |
display |
private static int[] |
field_24262 |
private AdvancementWidget |
parent |
private AdvancementProgress |
progress |
private AdvancementTab |
tab |
private OrderedText |
title |
private static Identifier |
WIDGETS_TEXTURE |
private int |
width |
private int |
xPos |
private int |
yPos |
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
Constructor and Description |
---|
AdvancementWidget(AdvancementTab tab,
MinecraftClient client,
Advancement advancement,
AdvancementDisplay display) |
Modifier and Type | Method and Description |
---|---|
void |
addChild(AdvancementWidget widget) |
void |
addToTree() |
void |
drawTooltip(MatrixStack matrixStack,
int int2,
int int3,
float float2,
int y,
int int4) |
private AdvancementWidget |
getParent(Advancement advancement) |
int |
getX() |
int |
getY() |
protected void |
method_2321(MatrixStack matrixStack,
int int2,
int int3,
int int4,
int int5,
int int6,
int int7,
int int8,
int int9) |
protected void |
method_2324(MatrixStack matrixStack,
int int2,
int int3,
int int4,
int int5,
int int6,
int int7,
int int8,
int int9,
int int10) |
private static float |
method_27572(TextHandler textHandler,
List<StringVisitable> list) |
void |
renderLines(MatrixStack matrixStack,
int int2,
int int3,
boolean bool) |
void |
renderWidgets(MatrixStack matrixStack,
int int2,
int int3) |
void |
setProgress(AdvancementProgress progress) |
boolean |
shouldRender(int originX,
int originY,
int mouseX,
int mouseY) |
private List<StringVisitable> |
wrapDescription(Text text,
int width) |
drawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, setZOffset
private static final Identifier WIDGETS_TEXTURE
private static final int[] field_24262
private final AdvancementTab tab
private final Advancement advancement
private final AdvancementDisplay display
private final OrderedText title
private final int width
private final List<OrderedText> description
private final MinecraftClient client
private AdvancementWidget parent
private final List<AdvancementWidget> children
private AdvancementProgress progress
private final int xPos
private final int yPos
public AdvancementWidget(AdvancementTab tab, MinecraftClient client, Advancement advancement, AdvancementDisplay display)
private static float method_27572(TextHandler textHandler, List<StringVisitable> list)
private List<StringVisitable> wrapDescription(Text text, int width)
@Nullable private AdvancementWidget getParent(Advancement advancement)
public void renderLines(MatrixStack matrixStack, int int2, int int3, boolean bool)
public void renderWidgets(MatrixStack matrixStack, int int2, int int3)
public void setProgress(AdvancementProgress progress)
public void addChild(AdvancementWidget widget)
public void drawTooltip(MatrixStack matrixStack, int int2, int int3, float float2, int y, int int4)
protected void method_2324(MatrixStack matrixStack, int int2, int int3, int int4, int int5, int int6, int int7, int int8, int int9, int int10)
protected void method_2321(MatrixStack matrixStack, int int2, int int3, int int4, int int5, int int6, int int7, int int8, int int9)
public boolean shouldRender(int originX, int originY, int mouseX, int mouseY)
public void addToTree()
public int getY()
public int getX()