public class PokemonEditorIndividualScreen extends IndividualEditorBaseScreen
p, textFields, titleTextdropDownManager, guiLeft, guiTop, xSize, ySize| Modifier and Type | Method and Description |
|---|---|
protected void |
changePokemon(Species newPokemon)
Changes the Pokémon into a different Pokémon.
|
protected boolean |
checkFields()
Checks if inputted fields are valid, then saves them.
|
protected void |
deletePokemon()
Deletes the Pokémon from the party.
|
protected void |
drawBackgroundUnderMenus(com.mojang.blaze3d.matrix.MatrixStack matrix,
float partialTicks,
int mouseX,
int mouseY)
Draws the screen background under the drop-down menus.
|
Pokemon[] |
getPokemon() |
java.util.List<Pokemon> |
getPokemonList()
Gets the list of party Pokémon that are being edited.
|
void |
init() |
boolean |
mouseClickedUnderMenus(double x,
double y,
int mouseButton)
Handles mouse input when a drop-down menu is not clicked.
|
protected void |
saveAndClose()
Saves the Pokémon's data to the server and closes the GUI.
|
void |
setPokemon(Pokemon... pokemon)
Sets the pokemon that was imported
|
void |
setPokemon(Pokemon pokemon) |
actionPerformed, charTyped, createExtraTextField, drawExtraText, getExportText, getNextAvailablePosition, getPokemonSingle, getScreen, importText, keyPressed, showDeleteButtonaddDropDown, disableMenus, drawGuiContainerBackgroundLayer, drawGuiContainerForegroundLayer, isPauseScreen, mouseClicked, mouseDragged, mouseScrolled, removeDropDown, renderaddButton, 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, wrapScreenErrorgetFocused, isDragging, setDragging, setFocusedblit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawString, drawString, fill, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLineclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic void init()
init in class IndividualEditorBaseScreenpublic void setPokemon(Pokemon pokemon)
setPokemon in class IndividualEditorBaseScreenprotected void drawBackgroundUnderMenus(com.mojang.blaze3d.matrix.MatrixStack matrix,
float partialTicks,
int mouseX,
int mouseY)
DropDownScreendrawBackgroundUnderMenus in class IndividualEditorBaseScreenpartialTicks - The current number of partial ticks.mouseX - The x coordinate of the mouse.mouseY - The y coordinate of the mouse.public boolean mouseClickedUnderMenus(double x,
double y,
int mouseButton)
DropDownScreenmouseClickedUnderMenus in class IndividualEditorBaseScreenx - The x coordinate of the mouse.y - The y coordinate of the mouse.mouseButton - The index of the clicked button.protected void changePokemon(Species newPokemon)
IndividualEditorBaseScreenchangePokemon in class IndividualEditorBaseScreennewPokemon - The Pokémon to change this Pokémon into.protected void deletePokemon()
IndividualEditorBaseScreendeletePokemon in class IndividualEditorBaseScreenprotected void saveAndClose()
IndividualEditorBaseScreensaveAndClose in class IndividualEditorBaseScreenpublic java.util.List<Pokemon> getPokemonList()
IndividualEditorBaseScreengetPokemonList in class IndividualEditorBaseScreenprotected boolean checkFields()
IndividualEditorBaseScreencheckFields in class IndividualEditorBaseScreenpublic Pokemon[] getPokemon()
public void setPokemon(Pokemon... pokemon)
IImportableContainerpokemon - The pokemon