Class PokeCheckerMovesScreen
java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
com.pixelmonmod.pixelmon.client.gui.pokechecker.PokeCheckerScreen
com.pixelmonmod.pixelmon.client.gui.pokechecker.PokeCheckerMovesScreen
- All Implemented Interfaces:
net.minecraft.client.gui.components.events.ContainerEventHandler
,net.minecraft.client.gui.components.events.GuiEventListener
,net.minecraft.client.gui.components.Renderable
,net.minecraft.client.gui.components.TabOrderedElement
The PokéChecker's move details screen.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.gui.screens.Screen
net.minecraft.client.gui.screens.Screen.NarratableSearchResult
-
Field Summary
Fields inherited from class com.pixelmonmod.pixelmon.client.gui.pokechecker.PokeCheckerScreen
DYNAMAX_LEVELS, guiLeft, guiTop, parent, pokemon, position, storage, xSize, ySize
Fields inherited from class net.minecraft.client.gui.screens.Screen
BACKGROUND_LOCATION, children, font, height, minecraft, renderables, screenExecutor, title, width
Fields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS
-
Constructor Summary
ConstructorDescriptionPokeCheckerMovesScreen
(PokemonStorage storage, StoragePosition position, net.minecraft.client.gui.screens.Screen parent) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
attackClicked
(double i, double i1) Keeps track of the selected move.void
drawGuiContainerBackgroundLayer
(net.minecraft.client.gui.GuiGraphics matrix, float partialTicks, int mouseX, int mouseY) void
drawGuiContainerForegroundLayer
(net.minecraft.client.gui.GuiGraphics matrix, int mouseX, int mouseY) void
drawMoveDescription
(net.minecraft.client.gui.GuiGraphics matrix) Draws move details for valid moves.protected void
drawSelectedRect
(net.minecraft.client.gui.GuiGraphics matrix) Draws a green rectangle around the selected move.protected void
drawSelectedRectBin
(net.minecraft.client.gui.GuiGraphics matrix, int i, int i1) Draws a red rectangle around the garbage bin if the player selects an empty move.void
drawSelection
(net.minecraft.client.gui.GuiGraphics matrix, int i, int i1) Draws a white rectangle around the selected move.boolean
mouseClicked
(double mouseX, double mouseY, int mouseButton) boolean
mouseScrolled
(double mX, double mY, double iX, double iY) 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.Methods inherited from class com.pixelmonmod.pixelmon.client.gui.pokechecker.PokeCheckerScreen
actionPerformed, arrowsMouseClicked, charTyped, drawArrows, drawBasePokemonInfo, drawHealthBar, drawPokemonName, init, isPauseScreen, onClose, render, renderBackground
Methods inherited from class net.minecraft.client.gui.screens.Screen
added, addEventWidget, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, changeFocus, children, clearFocus, clearWidgets, confirmLink, createArrowEvent, createTabEvent, findNarratableWidget, getBackgroundMusic, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, hideWidgets, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, keyPressed, narrationEnabled, onFilesDrop, openLink, rebuildWidgets, removed, removeWidget, renderDirtBackground, renderTransparentBackground, renderWithTooltip, repositionElements, resize, runNarration, scheduleNarration, setInitialFocus, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, shouldCloseOnEsc, shouldNarrateNavigation, shouldRunNarration, suppressNarration, tick, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, wrapScreenError
Methods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocused
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.client.gui.components.events.ContainerEventHandler
getChildAt, getCurrentFocusPath, isFocused, keyReleased, magicalSpecialHackyFocus, mouseDragged, mouseReleased, nextFocusPath, setFocused
Methods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
mouseMoved
Methods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Constructor Details
-
PokeCheckerMovesScreen
public PokeCheckerMovesScreen(PokemonStorage storage, StoragePosition position, @Nullable net.minecraft.client.gui.screens.Screen parent)
-
-
Method Details
-
resetAll
public void resetAll()Invalidates all moves on the screen. -
drawGuiContainerForegroundLayer
public void drawGuiContainerForegroundLayer(net.minecraft.client.gui.GuiGraphics matrix, int mouseX, int mouseY) - Overrides:
drawGuiContainerForegroundLayer
in classPokeCheckerScreen
-
drawMoveDescription
public void drawMoveDescription(net.minecraft.client.gui.GuiGraphics matrix) Draws move details for valid moves. -
switchMoves
public void switchMoves(int moveToChange2) Switches the positions of two moves.- Parameters:
moveToChange2
- The index of the move to switch the selected move with.
-
drawSelection
public void drawSelection(net.minecraft.client.gui.GuiGraphics matrix, int i, int i1) Draws a white rectangle around the selected move.- Parameters:
i
- The x coordinate of the cursor.i1
- The y coordinate of the cursor.
-
drawSelectedRect
protected void drawSelectedRect(net.minecraft.client.gui.GuiGraphics matrix) Draws a green rectangle around the selected move. -
drawSelectedRectBin
protected void drawSelectedRectBin(net.minecraft.client.gui.GuiGraphics matrix, int i, int i1) Draws a red rectangle around the garbage bin if the player selects an empty move.- Parameters:
i
- The x coordinate of the cursor.i1
- The y coordinate of the cursor.
-
moveClicked
protected int moveClicked(double i, double i1) Determines which move was clicked.- Parameters:
i
- The x coordinate of the cursor.i1
- The y coordinate of the cursor.- Returns:
- The index of the clicked move, or -1 if no move was clicked.
-
attackClicked
protected void attackClicked(double i, double i1) Keeps track of the selected move.- Parameters:
i
- The x coordinate of the cursor.i1
- The y coordinate of the cursor.
-
selectMove
protected void selectMove(double i, double i1) Selects a move if it is clicked.- Parameters:
i
- The x coordinate of the cursor.i1
- The y coordinate of the cursor.
-
mouseClicked
public boolean mouseClicked(double mouseX, double mouseY, int mouseButton) - Specified by:
mouseClicked
in interfacenet.minecraft.client.gui.components.events.ContainerEventHandler
- Specified by:
mouseClicked
in interfacenet.minecraft.client.gui.components.events.GuiEventListener
- Overrides:
mouseClicked
in classPokeCheckerScreen
-
drawGuiContainerBackgroundLayer
public void drawGuiContainerBackgroundLayer(net.minecraft.client.gui.GuiGraphics matrix, float partialTicks, int mouseX, int mouseY) - Overrides:
drawGuiContainerBackgroundLayer
in classPokeCheckerScreen
-
mouseScrolled
public boolean mouseScrolled(double mX, double mY, double iX, double iY)
-