@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, y
buttons, children, client, height, itemRenderer, passEvents, textRenderer, title, width
GUI_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, render
drawMouseoverTooltip, getScreenHandler, handleHotbarKeyPressed, isClickOutsideBounds, isPauseScreen, isPointWithinBounds, mouseClicked, mouseDragged, mouseReleased, onMouseClick, shouldCloseOnEsc, tick
addButton, 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, wrapScreenError
getFocused, isDragging, setDragging, setFocused
drawCenteredString, drawHorizontalLine, drawSprite, drawString, drawTexture, drawTexture, drawTexture, drawTexture, drawTexturedQuad, drawVerticalLine, fill, fill, fillGradient, getZOffset, setZOffset
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
changeFocus, charTyped, focusOn, hoveredElement, keyReleased, mouseScrolled, setInitialFocus
mouseMoved
private 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 Element
keyPressed
in interface ParentElement
keyPressed
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 ScreenHandlerListener
onSlotUpdate
in class ForgingScreen<AnvilScreenHandler>