public class PokeCheckerMovesScreen extends PokeCheckerScreen
guiLeft, guiTop, parent, pokemon, position, storage, xSize, ySize
Constructor and Description |
---|
PokeCheckerMovesScreen(PokemonStorage storage,
StoragePosition position,
net.minecraft.client.gui.screen.Screen parent) |
Modifier and Type | Method and Description |
---|---|
protected void |
attackClicked(double i,
double i1)
Keeps track of the selected move.
|
void |
drawGuiContainerBackgroundLayer(com.mojang.blaze3d.matrix.MatrixStack matrix,
float partialTicks,
int mouseX,
int mouseY) |
void |
drawGuiContainerForegroundLayer(com.mojang.blaze3d.matrix.MatrixStack matrix,
int mouseX,
int mouseY) |
void |
drawMoveDescription(com.mojang.blaze3d.matrix.MatrixStack matrix)
Draws move details for valid moves.
|
protected void |
drawSelectedRect(com.mojang.blaze3d.matrix.MatrixStack matrix)
Draws a green rectangle around the selected move.
|
protected void |
drawSelectedRectBin(com.mojang.blaze3d.matrix.MatrixStack matrix,
int i,
int i1)
Draws a red rectangle around the garbage bin if the player selects an empty move.
|
void |
drawSelection(com.mojang.blaze3d.matrix.MatrixStack matrix,
int i,
int i1)
Draws a white rectangle around the selected move.
|
boolean |
mouseClicked(double mouseX,
double mouseY,
int mouseButton) |
protected int |
moveClicked(double i,
double i1)
Determines which move was clicked.
|
void |
resetAll()
Invalidates all moves on the screen.
|
protected void |
selectMove(double i,
double i1)
Selects a move if it is clicked.
|
void |
switchMoves(int moveToChange2)
Switches the positions of two moves.
|
actionPerformed, arrowsMouseClicked, charTyped, drawArrows, drawBasePokemonInfo, drawCenteredStringWithoutShadow, drawCenteredStringWithoutShadow, drawHealthBar, drawPokemonName, init, isPauseScreen, onClose, render
addButton, addWidget, children, getMinecraft, getNarrationMessage, getTitle, getTooltipFromItem, handleComponentClicked, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, keyPressed, 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
public PokeCheckerMovesScreen(PokemonStorage storage, StoragePosition position, @Nullable net.minecraft.client.gui.screen.Screen parent)
public void resetAll()
public void drawGuiContainerForegroundLayer(com.mojang.blaze3d.matrix.MatrixStack matrix, int mouseX, int mouseY)
drawGuiContainerForegroundLayer
in class PokeCheckerScreen
public void drawMoveDescription(com.mojang.blaze3d.matrix.MatrixStack matrix)
public void switchMoves(int moveToChange2)
moveToChange2
- The index of the move to switch the selected move with.public void drawSelection(com.mojang.blaze3d.matrix.MatrixStack matrix, int i, int i1)
i
- The x coordinate of the cursor.i1
- The y coordinate of the cursor.protected void drawSelectedRect(com.mojang.blaze3d.matrix.MatrixStack matrix)
protected void drawSelectedRectBin(com.mojang.blaze3d.matrix.MatrixStack matrix, int i, int i1)
i
- The x coordinate of the cursor.i1
- The y coordinate of the cursor.protected int moveClicked(double i, double i1)
i
- The x coordinate of the cursor.i1
- The y coordinate of the cursor.protected void attackClicked(double i, double i1)
i
- The x coordinate of the cursor.i1
- The y coordinate of the cursor.protected void selectMove(double i, double i1)
i
- The x coordinate of the cursor.i1
- The y coordinate of the cursor.public boolean mouseClicked(double mouseX, double mouseY, int mouseButton)
mouseClicked
in interface net.minecraft.client.gui.IGuiEventListener
mouseClicked
in interface net.minecraft.client.gui.INestedGuiEventHandler
mouseClicked
in class PokeCheckerScreen
public void drawGuiContainerBackgroundLayer(com.mojang.blaze3d.matrix.MatrixStack matrix, float partialTicks, int mouseX, int mouseY)
drawGuiContainerBackgroundLayer
in class PokeCheckerScreen