@Environment(value=CLIENT) public class AdvancementWidget extends DrawableHelper
Modifier and Type | Field and Description |
---|---|
private Advancement |
advancement |
private static Pattern |
BACKSLASH_S_PATTERN |
private List<AdvancementWidget> |
children |
private MinecraftClient |
client |
private List<String> |
description |
private AdvancementDisplay |
display |
private AdvancementWidget |
parent |
private AdvancementProgress |
progress |
private AdvancementTab |
tab |
private String |
title |
private static Identifier |
WIDGETS_TEX |
private int |
width |
private int |
xPos |
private int |
yPos |
BACKGROUND_TEXTURE, GUI_ICONS_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(int originX,
int originY,
float alpha,
int x,
int y) |
private AdvancementWidget |
getParent(Advancement advancement) |
int |
getX() |
int |
getY() |
protected void |
method_2321(int int2,
int int3,
int int4,
int int5,
int int6,
int int7,
int int8,
int int9) |
protected void |
method_2324(int int2,
int int3,
int int4,
int int5,
int int6,
int int7,
int int8,
int int9,
int int10) |
void |
renderLines(int x,
int y,
boolean firstPass) |
void |
renderWidgets(int x,
int y) |
void |
setProgress(AdvancementProgress progress) |
boolean |
shouldRender(int originX,
int originY,
int mouseX,
int mouseY) |
private List<String> |
wrapDescription(String description,
int width) |
drawCenteredString, drawHorizontalLine, drawSprite, drawString, drawTexture, drawTexture, drawTexture, drawTexture, drawTexturedQuad, drawVerticalLine, fill, fill, fillGradient, getZOffset, setZOffset
private static final Identifier WIDGETS_TEX
private static final Pattern BACKSLASH_S_PATTERN
private final AdvancementTab tab
private final Advancement advancement
private final AdvancementDisplay display
private final String title
private final int width
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)
@Nullable private AdvancementWidget getParent(Advancement advancement)
public void renderLines(int x, int y, boolean firstPass)
public void renderWidgets(int x, int y)
public void setProgress(AdvancementProgress progress)
public void addChild(AdvancementWidget widget)
public void drawTooltip(int originX, int originY, float alpha, int x, int y)
protected void method_2324(int int2, int int3, int int4, int int5, int int6, int int7, int int8, int int9, int int10)
protected void method_2321(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()