Class ForgingScreen<T extends ForgingScreenHandler>
java.lang.Object
net.minecraft.client.gui.DrawableHelper
net.minecraft.client.gui.AbstractParentElement
net.minecraft.client.gui.screen.Screen
net.minecraft.client.gui.screen.ingame.HandledScreen<T>
net.minecraft.client.gui.screen.ingame.ForgingScreen<T>
- All Implemented Interfaces:
Drawable,Element,ParentElement,ScreenHandlerProvider<T>,TickableElement,ScreenHandlerListener
- Direct Known Subclasses:
AnvilScreen,SmithingScreen
@Environment(CLIENT) public class ForgingScreen<T extends ForgingScreenHandler> extends HandledScreen<T> implements ScreenHandlerListener
-
Field Summary
Fields Modifier and Type Field Description private IdentifiertextureFields inherited from class net.minecraft.client.gui.screen.ingame.HandledScreen
BACKGROUND_TEXTURE, backgroundHeight, backgroundWidth, cursorDragging, cursorDragSlots, focusedSlot, handler, playerInventory, playerInventoryTitleX, playerInventoryTitleY, titleX, titleY, x, yFields inherited from class net.minecraft.client.gui.screen.Screen
buttons, children, client, height, itemRenderer, passEvents, textRenderer, title, widthFields inherited from class net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE -
Constructor Summary
Constructors Constructor Description ForgingScreen(T handler, PlayerInventory playerInventory, Text title, Identifier texture) -
Method Summary
Modifier and Type Method Description protected voiddrawBackground(MatrixStack matrices, float delta, int mouseX, int mouseY)protected voidinit()Called when a screen should be initialized.voidonHandlerRegistered(ScreenHandler handler, DefaultedList<ItemStack> stacks)voidonPropertyUpdate(ScreenHandler handler, int property, int value)voidonSlotUpdate(ScreenHandler handler, int slotId, ItemStack stack)voidremoved()voidrender(MatrixStack matrices, int mouseX, int mouseY, float delta)protected voidrenderForeground(MatrixStack matrixStack, int mouseY, int int2, float float2)protected voidsetup()Methods inherited from class net.minecraft.client.gui.screen.ingame.HandledScreen
drawForeground, drawMouseoverTooltip, getScreenHandler, handleHotbarKeyPressed, isClickOutsideBounds, isPauseScreen, isPointWithinBounds, keyPressed, mouseClicked, mouseDragged, mouseReleased, onClose, onMouseClick, tickMethods inherited from class net.minecraft.client.gui.screen.Screen
addButton, 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, wrapScreenErrorMethods inherited from class net.minecraft.client.gui.AbstractParentElement
getFocused, isDragging, setDragging, setFocusedMethods inherited from class net.minecraft.client.gui.DrawableHelper
drawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, setZOffsetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.Element
mouseMovedMethods inherited from interface net.minecraft.client.gui.ParentElement
changeFocus, charTyped, focusOn, hoveredElement, keyReleased, mouseScrolled, setInitialFocus
-
Field Details
-
texture
-
-
Constructor Details
-
ForgingScreen
-
-
Method Details
-
setup
protected void setup() -
init
protected void init()Called when a screen should be initialized.This method is called when this screen is
openedor resized.- Overrides:
initin classHandledScreen<T extends ForgingScreenHandler>
-
removed
public void removed()- Overrides:
removedin classHandledScreen<T extends ForgingScreenHandler>
-
render
- Specified by:
renderin interfaceDrawable- Overrides:
renderin classHandledScreen<T extends ForgingScreenHandler>
-
renderForeground
-
drawBackground
- Specified by:
drawBackgroundin classHandledScreen<T extends ForgingScreenHandler>
-
onHandlerRegistered
- Specified by:
onHandlerRegisteredin interfaceScreenHandlerListener
-
onPropertyUpdate
- Specified by:
onPropertyUpdatein interfaceScreenHandlerListener
-
onSlotUpdate
- Specified by:
onSlotUpdatein interfaceScreenHandlerListener
-