@Environment(value=CLIENT) public class StatsScreen extends Screen implements StatsListener
Modifier and Type | Class and Description |
---|---|
(package private) class |
StatsScreen.EntityStatsListWidget |
(package private) class |
StatsScreen.GeneralStatsListWidget |
(package private) class |
StatsScreen.ItemStatsListWidget |
Modifier and Type | Field and Description |
---|---|
private boolean |
downloadingStats |
private static Text |
field_26546 |
private StatsScreen.GeneralStatsListWidget |
generalStats |
private StatsScreen.ItemStatsListWidget |
itemStats |
private StatsScreen.EntityStatsListWidget |
mobStats |
protected Screen |
parent |
private AlwaysSelectedEntryListWidget<?> |
selectedList |
private StatHandler |
statHandler |
buttons, children, client, height, itemRenderer, passEvents, textRenderer, title, width
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
PROGRESS_BAR_STAGES
Constructor and Description |
---|
StatsScreen(Screen parent,
StatHandler statHandler) |
Modifier and Type | Method and Description |
---|---|
void |
createButtons() |
void |
createLists() |
private int |
getColumnX(int index) |
AlwaysSelectedEntryListWidget<?> |
getSelectedStatList() |
protected void |
init()
Called when a screen should be initialized.
|
boolean |
isPauseScreen() |
private static String |
method_27027(Stat<Identifier> stat) |
void |
onStatsReady() |
void |
render(MatrixStack matrices,
int mouseX,
int mouseY,
float delta) |
private void |
renderIcon(MatrixStack matrixStack,
int int2,
int int3,
int int4,
int int5) |
private void |
renderStatItem(MatrixStack matrixStack,
int int2,
int int3,
Item item) |
void |
selectStatList(AlwaysSelectedEntryListWidget<?> list) |
addButton, addChild, children, filesDragged, getNarrationMessage, getTitle, getTooltipFromItem, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, keyPressed, onClose, removed, renderBackground, renderBackground, renderBackgroundTexture, renderOrderedTooltip, renderTextHoverEffect, renderTooltip, renderTooltip, renderTooltip, resize, sendMessage, sendMessage, shouldCloseOnEsc, tick, wrapScreenError
getFocused, isDragging, setDragging, setFocused
drawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, setZOffset
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
changeFocus, charTyped, focusOn, hoveredElement, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setInitialFocus
mouseMoved
private static final Text field_26546
protected final Screen parent
private StatsScreen.GeneralStatsListWidget generalStats
private StatsScreen.ItemStatsListWidget itemStats
private StatsScreen.EntityStatsListWidget mobStats
private final StatHandler statHandler
@Nullable private AlwaysSelectedEntryListWidget<?> selectedList
private boolean downloadingStats
public StatsScreen(Screen parent, StatHandler statHandler)
protected void init()
This method is called when this screen is opened
or resized.
public void createLists()
public void createButtons()
public void render(MatrixStack matrices, int mouseX, int mouseY, float delta)
public void onStatsReady()
onStatsReady
in interface StatsListener
public boolean isPauseScreen()
isPauseScreen
in class Screen
@Nullable public AlwaysSelectedEntryListWidget<?> getSelectedStatList()
public void selectStatList(@Nullable AlwaysSelectedEntryListWidget<?> list)
private static String method_27027(Stat<Identifier> stat)
private int getColumnX(int index)
private void renderStatItem(MatrixStack matrixStack, int int2, int int3, Item item)
private void renderIcon(MatrixStack matrixStack, int int2, int int3, int int4, int int5)