public class TradingScreen
extends net.minecraft.client.gui.screen.Screen
Modifier and Type | Field and Description |
---|---|
boolean |
ready
Whether the player is ready to trade.
|
Constructor and Description |
---|
TradingScreen(int x,
int y,
int z)
Initializes the trade GUI.
|
Modifier and Type | Method and Description |
---|---|
boolean |
drawButtonClose(com.mojang.blaze3d.matrix.MatrixStack matrix,
double par1,
double par2)
Draws a button to close the GUI.
|
boolean |
drawButtonReady(com.mojang.blaze3d.matrix.MatrixStack matrix,
double par1,
double par2)
Draws a button to mark the player as ready to trade.
|
boolean |
drawButtonTrade(com.mojang.blaze3d.matrix.MatrixStack matrix,
double par1,
double par2)
Draws a button to allow the player to trade.
|
int |
drawPokemonSelection(com.mojang.blaze3d.matrix.MatrixStack matrix,
double par1,
double par2)
Draws a rectangle around the selected Pokémon.
|
boolean |
isPauseScreen()
Returns true if this GUI should pause the game when it is displayed in single-player
|
boolean |
mouseClicked(double par1,
double par2,
int par3) |
void |
removed() |
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, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, keyPressed, onClose, onFilesDrop, 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
public TradingScreen(int x, int y, int z)
public void removed()
removed
in class net.minecraft.client.gui.screen.Screen
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 int drawPokemonSelection(com.mojang.blaze3d.matrix.MatrixStack matrix, double par1, double par2)
par1
- The x coordinate of the mouse.par2
- The y coordinate of the mouse.public boolean drawButtonTrade(com.mojang.blaze3d.matrix.MatrixStack matrix, double par1, double par2)
par1
- The x coordinate of the mouse.par2
- The y coordinate of the mouse.public boolean drawButtonClose(com.mojang.blaze3d.matrix.MatrixStack matrix, double par1, double par2)
par1
- The x coordinate of the mouse.par2
- The y coordinate of the mouse.public boolean drawButtonReady(com.mojang.blaze3d.matrix.MatrixStack matrix, double par1, double par2)
par1
- The x coordinate of the mouse.par2
- The y coordinate of the mouse.public boolean mouseClicked(double par1, double par2, int par3)
public boolean isPauseScreen()
isPauseScreen
in class net.minecraft.client.gui.screen.Screen