Class PokeCheckerScreen
java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
com.pixelmonmod.pixelmon.client.gui.pokechecker.PokeCheckerScreen
- 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
- Direct Known Subclasses:
PokeCheckerMovesScreen
,PokeCheckerRibbonsScreen
,PokeCheckerStatsScreen
,PokeCheckerTMsScreen
public class PokeCheckerScreen
extends net.minecraft.client.gui.screens.Screen
PokéChecker summary screen.
TODO HAPPYZ: Remake. Also make it like you can give the pokémon list to navigate instead of implying it's the party and not working for anything else.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.gui.screens.Screen
net.minecraft.client.gui.screens.Screen.NarratableSearchResult
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Color[]
protected int
Starting X position for the Gui.protected int
Starting Y position for the Gui.protected net.minecraft.client.gui.screens.Screen
protected Pokemon
protected StoragePosition
protected PokemonStorage
protected int
The X size of the inventory window in pixels.protected int
The Y size of the inventory window in pixels.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
ModifierConstructorDescriptionPokeCheckerScreen
(PokemonStorage storage, StoragePosition position, net.minecraft.client.gui.screens.Screen parent) protected
Copy constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
actionPerformed
(net.minecraft.client.gui.components.Button button) void
arrowsMouseClicked
(double mouseX, double mouseY) Displays to the next or previous Pokémon in the player's party when an arrow button is clicked.boolean
charTyped
(char typedChar, int keyCode) void
drawArrows
(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY) Draws the arrow buttons used to cycle through the player's party.protected void
drawBasePokemonInfo
(net.minecraft.client.gui.GuiGraphics graphics) Draws the top-left of the screen, with info that is displayed in all PokéChecker screens.void
drawGuiContainerBackgroundLayer
(net.minecraft.client.gui.GuiGraphics graphics, float partialTicks, int mouseX, int mouseY) void
drawGuiContainerForegroundLayer
(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY) void
drawHealthBar
(net.minecraft.client.gui.GuiGraphics matrix, int x, int y, int width, int height, Pokemon pokemon) Draws a Pokémon's health bar.protected void
drawPokemonName
(net.minecraft.client.gui.GuiGraphics graphics) Draws the name and nickname of the Pokémon.void
init()
boolean
boolean
mouseClicked
(double mouseX, double mouseY, int mouseButton) void
onClose()
void
render
(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY, float partialTicks) void
renderBackground
(net.minecraft.client.gui.GuiGraphics p_283688_, int p_299421_, int p_298679_, float p_297268_) 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, mouseScrolled, 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
-
Field Details
-
DYNAMAX_LEVELS
-
xSize
protected int xSizeThe X size of the inventory window in pixels. -
ySize
protected int ySizeThe Y size of the inventory window in pixels. -
guiLeft
protected int guiLeftStarting X position for the Gui. Inconsistent use for Gui backgrounds. -
guiTop
protected int guiTopStarting Y position for the Gui. Inconsistent use for Gui backgrounds. -
storage
-
position
-
pokemon
-
parent
@Nullable protected net.minecraft.client.gui.screens.Screen parent
-
-
Constructor Details
-
PokeCheckerScreen
public PokeCheckerScreen(PokemonStorage storage, StoragePosition position, @Nullable net.minecraft.client.gui.screens.Screen parent) -
PokeCheckerScreen
Copy constructor.
-
-
Method Details
-
init
public void init()- Overrides:
init
in classnet.minecraft.client.gui.screens.Screen
-
actionPerformed
public void actionPerformed(net.minecraft.client.gui.components.Button button) -
renderBackground
public void renderBackground(net.minecraft.client.gui.GuiGraphics p_283688_, int p_299421_, int p_298679_, float p_297268_) - Overrides:
renderBackground
in classnet.minecraft.client.gui.screens.Screen
-
charTyped
public boolean charTyped(char typedChar, int keyCode) -
onClose
public void onClose()- Overrides:
onClose
in classnet.minecraft.client.gui.screens.Screen
-
mouseClicked
public boolean mouseClicked(double mouseX, double mouseY, int mouseButton) -
render
public void render(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY, float partialTicks) - Specified by:
render
in interfacenet.minecraft.client.gui.components.Renderable
- Overrides:
render
in classnet.minecraft.client.gui.screens.Screen
-
drawGuiContainerForegroundLayer
public void drawGuiContainerForegroundLayer(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY) -
drawBasePokemonInfo
protected void drawBasePokemonInfo(net.minecraft.client.gui.GuiGraphics graphics) Draws the top-left of the screen, with info that is displayed in all PokéChecker screens. -
drawGuiContainerBackgroundLayer
public void drawGuiContainerBackgroundLayer(net.minecraft.client.gui.GuiGraphics graphics, float partialTicks, int mouseX, int mouseY) -
drawPokemonName
protected void drawPokemonName(net.minecraft.client.gui.GuiGraphics graphics) Draws the name and nickname of the Pokémon. -
arrowsMouseClicked
public void arrowsMouseClicked(double mouseX, double mouseY) Displays to the next or previous Pokémon in the player's party when an arrow button is clicked.- Parameters:
mouseX
- The mouseX coordinate of the cursor.mouseY
- The mouseY coordinate of the cursor.
-
drawArrows
public void drawArrows(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY) Draws the arrow buttons used to cycle through the player's party.- Parameters:
mouseX
- The x coordinate of the cursor.mouseY
- The y coordinate of the cursor.
-
drawHealthBar
public void drawHealthBar(net.minecraft.client.gui.GuiGraphics matrix, int x, int y, int width, int height, Pokemon pokemon) Draws a Pokémon's health bar.- Parameters:
x
- The x coordinate of the left side of the health bar.y
- The y coordinate of the top of the health bar.width
- The width of the health bar.height
- The height of the health bar.pokemon
- The Pokémon to draw a health bar for.
-
isPauseScreen
public boolean isPauseScreen()- Overrides:
isPauseScreen
in classnet.minecraft.client.gui.screens.Screen
-