public class TrainerEditorScreen extends DropDownScreen
Modifier and Type | Field and Description |
---|---|
static int |
currentTrainerID
The unique Trainer ID of the Trainer.
|
static java.util.ArrayList<Pokemon> |
pokemonList
The Pokémon that the Trainer has.
|
static SetTrainerData |
trainerData
Data regarding the Trainer.
|
dropDownManager, guiLeft, guiTop, xSize, ySize
Constructor and Description |
---|
TrainerEditorScreen(int trainerId)
Initializes the GUI with a Trainer to edit.
|
Modifier and Type | Method and Description |
---|---|
protected void |
actionPerformed(net.minecraft.client.gui.widget.button.Button button) |
boolean |
charTyped(char key,
int keyCode) |
protected void |
drawBackgroundUnderMenus(com.mojang.blaze3d.matrix.MatrixStack matrix,
float partialTicks,
int mouseX,
int mouseY)
Draws the screen background under the drop-down menus.
|
void |
init() |
boolean |
isPauseScreen()
Returns true if this GUI should pause the game when it is displayed in single-player
|
boolean |
keyPressed(int key,
int keyCode,
int modifiers) |
boolean |
mouseClickedUnderMenus(double x,
double y,
int mouseButton)
Handles mouse input when a drop-down menu is not clicked.
|
addDropDown, disableMenus, drawGuiContainerBackgroundLayer, drawGuiContainerForegroundLayer, mouseClicked, mouseDragged, mouseScrolled, removeDropDown, render
addButton, addWidget, children, getMinecraft, getNarrationMessage, getTitle, getTooltipFromItem, handleComponentClicked, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, onClose, 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 static java.util.ArrayList<Pokemon> pokemonList
public static int currentTrainerID
public static SetTrainerData trainerData
public TrainerEditorScreen(int trainerId)
trainerId
- The ID of the Trainer to edit.public void init()
init
in class DropDownScreen
protected void drawBackgroundUnderMenus(com.mojang.blaze3d.matrix.MatrixStack matrix, float partialTicks, int mouseX, int mouseY)
DropDownScreen
drawBackgroundUnderMenus
in class DropDownScreen
partialTicks
- The current number of partial ticks.mouseX
- The x coordinate of the mouse.mouseY
- The y coordinate of the mouse.public boolean keyPressed(int key, int keyCode, int modifiers)
keyPressed
in interface net.minecraft.client.gui.IGuiEventListener
keyPressed
in interface net.minecraft.client.gui.INestedGuiEventHandler
keyPressed
in class net.minecraft.client.gui.screen.Screen
public boolean charTyped(char key, int keyCode)
public boolean mouseClickedUnderMenus(double x, double y, int mouseButton)
DropDownScreen
mouseClickedUnderMenus
in class DropDownScreen
x
- The x coordinate of the mouse.y
- The y coordinate of the mouse.mouseButton
- The index of the clicked button.protected void actionPerformed(net.minecraft.client.gui.widget.button.Button button)
public boolean isPauseScreen()
isPauseScreen
in class DropDownScreen