public class NPCTraderScreen
extends net.minecraft.client.gui.screen.Screen
Modifier and Type | Field and Description |
---|---|
protected int |
xSize
The X size of the inventory window in pixels.
|
protected int |
ySize
The Y size of the inventory window in pixels.
|
Constructor and Description |
---|
NPCTraderScreen(int traderId)
Initializes the GUI.
|
Modifier and Type | Method and Description |
---|---|
protected void |
actionPerformed(net.minecraft.client.gui.widget.button.Button button) |
void |
init() |
boolean |
isPauseScreen()
Returns true if this GUI should pause the game when it is displayed in single-player
|
void |
render(com.mojang.blaze3d.matrix.MatrixStack matrix,
int var2,
int var3,
float var1) |
addButton, addWidget, children, getMinecraft, getNarrationMessage, getTitle, getTooltipFromItem, handleComponentClicked, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, keyPressed, onClose, onFilesDrop, removed, renderBackground, renderBackground, renderComponentHoverEffect, renderComponentTooltip, renderDirtBackground, renderTooltip, renderTooltip, renderTooltip, renderToolTip, renderWrappedToolTip, resize, sendMessage, sendMessage, shouldCloseOnEsc, tick, wrapScreenError
getFocused, isDragging, setDragging, setFocused
blit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawString, drawString, fill, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLine
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
protected int xSize
protected int ySize
public NPCTraderScreen(int traderId)
traderId
- The ID of the trader being interacted with.public void render(com.mojang.blaze3d.matrix.MatrixStack matrix, int var2, int var3, float var1)
render
in interface net.minecraft.client.gui.IRenderable
render
in class net.minecraft.client.gui.screen.Screen
public void init()
init
in class net.minecraft.client.gui.screen.Screen
protected void actionPerformed(net.minecraft.client.gui.widget.button.Button button)
public boolean isPauseScreen()
isPauseScreen
in class net.minecraft.client.gui.screen.Screen