public class PokemonEditorIndividualScreen extends IndividualEditorBaseScreen
p, textFields, titleText
dropDownManager, 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, showDeleteButton
addDropDown, disableMenus, drawGuiContainerBackgroundLayer, drawGuiContainerForegroundLayer, isPauseScreen, 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 void init()
init
in class IndividualEditorBaseScreen
public void setPokemon(Pokemon pokemon)
setPokemon
in class IndividualEditorBaseScreen
protected void drawBackgroundUnderMenus(com.mojang.blaze3d.matrix.MatrixStack matrix, float partialTicks, int mouseX, int mouseY)
DropDownScreen
drawBackgroundUnderMenus
in class IndividualEditorBaseScreen
partialTicks
- 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)
DropDownScreen
mouseClickedUnderMenus
in class IndividualEditorBaseScreen
x
- 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)
IndividualEditorBaseScreen
changePokemon
in class IndividualEditorBaseScreen
newPokemon
- The Pokémon to change this Pokémon into.protected void deletePokemon()
IndividualEditorBaseScreen
deletePokemon
in class IndividualEditorBaseScreen
protected void saveAndClose()
IndividualEditorBaseScreen
saveAndClose
in class IndividualEditorBaseScreen
public java.util.List<Pokemon> getPokemonList()
IndividualEditorBaseScreen
getPokemonList
in class IndividualEditorBaseScreen
protected boolean checkFields()
IndividualEditorBaseScreen
checkFields
in class IndividualEditorBaseScreen
public Pokemon[] getPokemon()
public void setPokemon(Pokemon... pokemon)
IImportableContainer
pokemon
- The pokemon