@Environment(value=CLIENT) public class AnvilScreen extends ForgingScreen<AnvilScreenHandler>
| Modifier and Type | Field and Description |
|---|---|
private TextFieldWidget |
nameField |
private static Identifier |
TEXTURE |
BACKGROUND_TEXTURE, backgroundHeight, backgroundWidth, cursorDragSlots, focusedSlot, handler, isCursorDragging, playerInventory, x, ybuttons, children, client, height, itemRenderer, passEvents, textRenderer, title, widthGUI_ICONS_TEXTURE, STATS_ICON_TEXTURE| Constructor and Description |
|---|
AnvilScreen(AnvilScreenHandler handler,
PlayerInventory inventory,
Text title) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
drawForeground(int mouseX,
int mouseY) |
boolean |
keyPressed(int keyCode,
int scanCode,
int modifiers) |
private void |
onRenamed(String name) |
void |
onSlotUpdate(ScreenHandler handler,
int slotId,
ItemStack stack) |
void |
removed() |
void |
renderForeground(int mouseX,
int mouseY,
float delta) |
void |
resize(MinecraftClient client,
int width,
int height) |
protected void |
setup() |
drawBackground, init, onHandlerRegistered, onPropertyUpdate, renderdrawMouseoverTooltip, getScreenHandler, handleHotbarKeyPressed, isClickOutsideBounds, isPauseScreen, isPointWithinBounds, mouseClicked, mouseDragged, mouseReleased, onMouseClick, shouldCloseOnEsc, tickaddButton, addChild, children, getNarrationMessage, getTitle, getTooltipFromItem, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, onClose, renderBackground, renderBackground, renderDirtBackground, renderTextHoverEffect, renderTooltip, renderTooltip, renderTooltip, sendMessage, sendMessage, wrapScreenErrorgetFocused, isDragging, setDragging, setFocuseddrawCenteredString, drawHorizontalLine, drawSprite, drawString, drawTexture, drawTexture, drawTexture, drawTexture, drawTexturedQuad, drawVerticalLine, fill, fill, fillGradient, getZOffset, setZOffsetclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchangeFocus, charTyped, focusOn, hoveredElement, keyReleased, mouseScrolled, setInitialFocusmouseMovedprivate static final Identifier TEXTURE
private TextFieldWidget nameField
public AnvilScreen(AnvilScreenHandler handler, PlayerInventory inventory, Text title)
protected void setup()
setup in class ForgingScreen<AnvilScreenHandler>public void resize(MinecraftClient client, int width, int height)
public void removed()
removed in class ForgingScreen<AnvilScreenHandler>public boolean keyPressed(int keyCode,
int scanCode,
int modifiers)
keyPressed in interface ElementkeyPressed in interface ParentElementkeyPressed in class HandledScreen<AnvilScreenHandler>private void onRenamed(String name)
protected void drawForeground(int mouseX,
int mouseY)
drawForeground in class HandledScreen<AnvilScreenHandler>public void renderForeground(int mouseX,
int mouseY,
float delta)
renderForeground in class ForgingScreen<AnvilScreenHandler>public void onSlotUpdate(ScreenHandler handler, int slotId, ItemStack stack)
onSlotUpdate in interface ScreenHandlerListeneronSlotUpdate in class ForgingScreen<AnvilScreenHandler>