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, ySizeFields inherited from class net.minecraft.client.gui.screens.Screen
BACKGROUND_LOCATION, children, font, height, minecraft, renderables, screenExecutor, title, widthFields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS -
Constructor Summary
ConstructorsConstructorDescriptionPokeCheckerMovesScreen(PokemonStorage storage, StoragePosition position, net.minecraft.client.gui.screens.Screen parent) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidattackClicked(double i, double i1) Keeps track of the selected move.voiddrawGuiContainerBackgroundLayer(net.minecraft.client.gui.GuiGraphics matrix, float partialTicks, int mouseX, int mouseY) voiddrawGuiContainerForegroundLayer(net.minecraft.client.gui.GuiGraphics matrix, int mouseX, int mouseY) voiddrawMoveDescription(net.minecraft.client.gui.GuiGraphics matrix) Draws move details for valid moves.protected voiddrawSelectedRect(net.minecraft.client.gui.GuiGraphics matrix) Draws a green rectangle around the selected move.protected voiddrawSelectedRectBin(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.voiddrawSelection(net.minecraft.client.gui.GuiGraphics matrix, int i, int i1) Draws a white rectangle around the selected move.booleanmouseClicked(double mouseX, double mouseY, int mouseButton) booleanmouseScrolled(double mX, double mY, double iX, double iY) protected intmoveClicked(double i, double i1) Determines which move was clicked.voidresetAll()Invalidates all moves on the screen.protected voidselectMove(double i, double i1) Selects a move if it is clicked.voidswitchMoves(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, renderBackgroundMethods 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, wrapScreenErrorMethods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocusedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.components.events.ContainerEventHandler
getChildAt, getCurrentFocusPath, isFocused, keyReleased, magicalSpecialHackyFocus, mouseDragged, mouseReleased, nextFocusPath, setFocusedMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
mouseMovedMethods 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:
drawGuiContainerForegroundLayerin 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:
mouseClickedin interfacenet.minecraft.client.gui.components.events.ContainerEventHandler- Specified by:
mouseClickedin interfacenet.minecraft.client.gui.components.events.GuiEventListener- Overrides:
mouseClickedin classPokeCheckerScreen
-
drawGuiContainerBackgroundLayer
public void drawGuiContainerBackgroundLayer(net.minecraft.client.gui.GuiGraphics matrix, float partialTicks, int mouseX, int mouseY) - Overrides:
drawGuiContainerBackgroundLayerin classPokeCheckerScreen
-
mouseScrolled
public boolean mouseScrolled(double mX, double mY, double iX, double iY)
-