@Environment(value=CLIENT) public class ForgingScreen<T extends ForgingScreenHandler> extends HandledScreen<T> implements ScreenHandlerListener
| Modifier and Type | Field and Description |
|---|---|
private 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 |
|---|
ForgingScreen(T handler,
PlayerInventory playerInventory,
Text title,
Identifier texture) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
drawBackground(MatrixStack matrices,
float delta,
int mouseX,
int mouseY) |
protected void |
init()
Called when a screen should be initialized.
|
void |
onHandlerRegistered(ScreenHandler handler,
DefaultedList<ItemStack> stacks) |
void |
onPropertyUpdate(ScreenHandler handler,
int property,
int value) |
void |
onSlotUpdate(ScreenHandler handler,
int slotId,
ItemStack stack) |
void |
removed() |
void |
render(MatrixStack matrices,
int mouseX,
int mouseY,
float delta) |
protected void |
renderForeground(MatrixStack matrixStack,
int mouseY,
int int2,
float float2) |
protected void |
setup() |
drawForeground, drawMouseoverTooltip, getScreenHandler, handleHotbarKeyPressed, isClickOutsideBounds, isPauseScreen, isPointWithinBounds, keyPressed, mouseClicked, mouseDragged, mouseReleased, onClose, onMouseClick, tickaddButton, 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, resize, 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 Identifier texture
public ForgingScreen(T handler, PlayerInventory playerInventory, Text title, Identifier texture)
protected void setup()
protected void init()
This method is called when this screen is opened or resized.
init in class HandledScreen<T extends ForgingScreenHandler>public void removed()
removed in class HandledScreen<T extends ForgingScreenHandler>public void render(MatrixStack matrices, int mouseX, int mouseY, float delta)
render in interface Drawablerender in class HandledScreen<T extends ForgingScreenHandler>protected void renderForeground(MatrixStack matrixStack, int mouseY, int int2, float float2)
protected void drawBackground(MatrixStack matrices, float delta, int mouseX, int mouseY)
drawBackground in class HandledScreen<T extends ForgingScreenHandler>public void onHandlerRegistered(ScreenHandler handler, DefaultedList<ItemStack> stacks)
onHandlerRegistered in interface ScreenHandlerListenerpublic void onPropertyUpdate(ScreenHandler handler, int property, int value)
onPropertyUpdate in interface ScreenHandlerListenerpublic void onSlotUpdate(ScreenHandler handler, int slotId, ItemStack stack)
onSlotUpdate in interface ScreenHandlerListener