public class PokeCheckerScreen
extends net.minecraft.client.gui.screen.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.
Modifier and Type | Field and Description |
---|---|
protected int |
guiLeft
Starting X position for the Gui.
|
protected int |
guiTop
Starting Y position for the Gui.
|
protected net.minecraft.client.gui.screen.Screen |
parent |
protected Pokemon |
pokemon |
protected StoragePosition |
position |
protected PokemonStorage |
storage |
protected int |
xSize
The X size of the inventory window in pixels.
|
protected int |
ySize
The Y size of the inventory window in pixels.
|
Modifier | Constructor and Description |
---|---|
protected |
PokeCheckerScreen(PokeCheckerScreen tab)
Copy constructor.
|
|
PokeCheckerScreen(PokemonStorage storage,
StoragePosition position,
net.minecraft.client.gui.screen.Screen parent) |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(net.minecraft.client.gui.widget.button.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(com.mojang.blaze3d.matrix.MatrixStack matrix,
int mouseX,
int mouseY)
Draws the arrow buttons used to cycle through the player's party.
|
protected void |
drawBasePokemonInfo(com.mojang.blaze3d.matrix.MatrixStack matrix)
Draws the top-left of the screen, with info that is displayed in all PokéChecker screens.
|
void |
drawCenteredStringWithoutShadow(com.mojang.blaze3d.matrix.MatrixStack matrix,
net.minecraft.util.text.ITextComponent text,
int x,
int y,
int color) |
void |
drawCenteredStringWithoutShadow(com.mojang.blaze3d.matrix.MatrixStack matrix,
java.lang.String text,
int x,
int y,
int color)
Draws a string at a certain position without any shadow.
|
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 |
drawHealthBar(com.mojang.blaze3d.matrix.MatrixStack matrix,
int x,
int y,
int width,
int height,
Pokemon pokemon)
Draws a Pokémon's health bar.
|
protected void |
drawPokemonName(com.mojang.blaze3d.matrix.MatrixStack matrix)
Draws the name and nickname of the Pokémon.
|
void |
init() |
boolean |
isPauseScreen() |
boolean |
mouseClicked(double mouseX,
double mouseY,
int mouseButton) |
void |
onClose() |
void |
render(com.mojang.blaze3d.matrix.MatrixStack matrix,
int mouseX,
int mouseY,
float partialTicks) |
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
protected int xSize
protected int ySize
protected int guiLeft
protected int guiTop
protected PokemonStorage storage
protected StoragePosition position
protected Pokemon pokemon
@Nullable protected net.minecraft.client.gui.screen.Screen parent
public PokeCheckerScreen(PokemonStorage storage, StoragePosition position, @Nullable net.minecraft.client.gui.screen.Screen parent)
protected PokeCheckerScreen(PokeCheckerScreen tab)
public void init()
init
in class net.minecraft.client.gui.screen.Screen
public void actionPerformed(net.minecraft.client.gui.widget.button.Button button)
public boolean charTyped(char typedChar, int keyCode)
public void onClose()
onClose
in class net.minecraft.client.gui.screen.Screen
public boolean mouseClicked(double mouseX, double mouseY, int mouseButton)
public void render(com.mojang.blaze3d.matrix.MatrixStack matrix, int mouseX, int mouseY, float partialTicks)
render
in interface net.minecraft.client.gui.IRenderable
render
in class net.minecraft.client.gui.screen.Screen
public void drawGuiContainerForegroundLayer(com.mojang.blaze3d.matrix.MatrixStack matrix, int mouseX, int mouseY)
protected void drawBasePokemonInfo(com.mojang.blaze3d.matrix.MatrixStack matrix)
public void drawGuiContainerBackgroundLayer(com.mojang.blaze3d.matrix.MatrixStack matrix, float partialTicks, int mouseX, int mouseY)
protected void drawPokemonName(com.mojang.blaze3d.matrix.MatrixStack matrix)
public void arrowsMouseClicked(double mouseX, double mouseY)
mouseX
- The mouseX coordinate of the cursor.mouseY
- The mouseY coordinate of the cursor.public void drawArrows(com.mojang.blaze3d.matrix.MatrixStack matrix, int mouseX, int mouseY)
mouseX
- The x coordinate of the cursor.mouseY
- The y coordinate of the cursor.public void drawHealthBar(com.mojang.blaze3d.matrix.MatrixStack matrix, int x, int y, int width, int height, Pokemon pokemon)
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.public void drawCenteredStringWithoutShadow(com.mojang.blaze3d.matrix.MatrixStack matrix, java.lang.String text, int x, int y, int color)
text
- The string to draw.x
- The x coordinate of the center of the string.y
- The y coordinate of the string.color
- The color of the string.public void drawCenteredStringWithoutShadow(com.mojang.blaze3d.matrix.MatrixStack matrix, net.minecraft.util.text.ITextComponent text, int x, int y, int color)
public boolean isPauseScreen()
isPauseScreen
in class net.minecraft.client.gui.screen.Screen