@Environment(value=CLIENT) public class AnvilScreen extends ForgingScreen<AnvilScreenHandler>
| Modifier and Type | Field and Description |
|---|---|
private static Text |
field_26559 |
private TextFieldWidget |
nameField |
private static Identifier |
TEXTURE |
BACKGROUND_TEXTURE, backgroundHeight, backgroundWidth, cursorDragging, cursorDragSlots, focusedSlot, handler, playerInventory, playerInventoryTitleX, playerInventoryTitleY, titleX, titleY, x, ybuttons, children, client, height, itemRenderer, passEvents, textRenderer, title, widthGUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE| Constructor and Description |
|---|
AnvilScreen(AnvilScreenHandler handler,
PlayerInventory inventory,
Text title) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
drawForeground(MatrixStack matrices,
int mouseX,
int mouseY) |
boolean |
keyPressed(int keyCode,
int scanCode,
int modifiers)
Callback for when a key down event has been captured.
|
private void |
onRenamed(String name) |
void |
onSlotUpdate(ScreenHandler handler,
int slotId,
ItemStack stack) |
void |
removed() |
void |
renderForeground(MatrixStack matrixStack,
int mouseY,
int int2,
float float2) |
void |
resize(MinecraftClient client,
int width,
int height) |
protected void |
setup() |
void |
tick() |
drawBackground, init, onHandlerRegistered, onPropertyUpdate, renderdrawMouseoverTooltip, getScreenHandler, handleHotbarKeyPressed, isClickOutsideBounds, isPauseScreen, isPointWithinBounds, mouseClicked, mouseDragged, mouseReleased, onClose, onMouseClickaddButton, addChild, children, filesDragged, getNarrationMessage, getTitle, getTooltipFromItem, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, renderBackground, renderBackground, renderBackgroundTexture, renderOrderedTooltip, renderTextHoverEffect, renderTooltip, renderTooltip, renderTooltip, sendMessage, sendMessage, shouldCloseOnEsc, wrapScreenErrorgetFocused, isDragging, setDragging, setFocuseddrawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, setZOffsetclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchangeFocus, charTyped, focusOn, hoveredElement, keyReleased, mouseScrolled, setInitialFocusmouseMovedprivate static final Identifier TEXTURE
private static final Text field_26559
private TextFieldWidget nameField
public AnvilScreen(AnvilScreenHandler handler, PlayerInventory inventory, Text title)
public void tick()
tick in interface TickableElementtick in class HandledScreen<AnvilScreenHandler>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)
GLFW class.keyPressed in interface ElementkeyPressed in interface ParentElementkeyPressed in class HandledScreen<AnvilScreenHandler>keyCode - the named key code of the event as described in the GLFW classscanCode - the unique/platform-specific scan code of the keyboard inputmodifiers - a GLFW bitfield describing the modifier keys that are held down (see GLFW Modifier key flags)true to indicate that the event handling is successful/validKeyboard.onKey(long, int, int, int, int),
GLFW.GLFW_KEY_Q,
GLFWKeyCallbackI.invoke(long, int, int, int, int)private void onRenamed(String name)
protected void drawForeground(MatrixStack matrices, int mouseX, int mouseY)
drawForeground in class HandledScreen<AnvilScreenHandler>public void renderForeground(MatrixStack matrixStack, int mouseY, int int2, float float2)
renderForeground in class ForgingScreen<AnvilScreenHandler>public void onSlotUpdate(ScreenHandler handler, int slotId, ItemStack stack)
onSlotUpdate in interface ScreenHandlerListeneronSlotUpdate in class ForgingScreen<AnvilScreenHandler>