@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, cursorDragSlots, focusedSlot, handler, isCursorDragging, playerInventory, x, ybuttons, children, client, height, itemRenderer, passEvents, textRenderer, title, widthGUI_ICONS_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(float delta,
int mouseX,
int mouseY) |
protected void |
init() |
void |
onHandlerRegistered(ScreenHandler handler,
DefaultedList<ItemStack> stacks) |
void |
onPropertyUpdate(ScreenHandler handler,
int propertyId,
int value) |
void |
onSlotUpdate(ScreenHandler handler,
int slotId,
ItemStack stack) |
void |
removed() |
void |
render(int mouseX,
int mouseY,
float delta) |
protected void |
renderForeground(int mouseX,
int mouseY,
float delta) |
protected void |
setup() |
drawForeground, drawMouseoverTooltip, getScreenHandler, handleHotbarKeyPressed, isClickOutsideBounds, isPauseScreen, isPointWithinBounds, keyPressed, 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, resize, 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 Identifier texture
public ForgingScreen(T handler, PlayerInventory playerInventory, Text title, Identifier texture)
protected void setup()
protected void init()
init in class HandledScreen<T extends ForgingScreenHandler>public void removed()
removed in class HandledScreen<T extends ForgingScreenHandler>public void render(int mouseX,
int mouseY,
float delta)
render in interface Drawablerender in class HandledScreen<T extends ForgingScreenHandler>protected void renderForeground(int mouseX,
int mouseY,
float delta)
protected void drawBackground(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 propertyId, int value)
onPropertyUpdate in interface ScreenHandlerListenerpublic void onSlotUpdate(ScreenHandler handler, int slotId, ItemStack stack)
onSlotUpdate in interface ScreenHandlerListener