@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, y
buttons, children, client, height, itemRenderer, passEvents, textRenderer, title, width
GUI_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, 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, resize, 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 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 Drawable
render
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 ScreenHandlerListener
public void onPropertyUpdate(ScreenHandler handler, int propertyId, int value)
onPropertyUpdate
in interface ScreenHandlerListener
public void onSlotUpdate(ScreenHandler handler, int slotId, ItemStack stack)
onSlotUpdate
in interface ScreenHandlerListener