public class TrainerEditorPokemonScreen extends IndividualEditorBaseScreen
p, textFields, titleText
dropDownManager, guiLeft, guiTop, xSize, ySize
Constructor and Description |
---|
TrainerEditorPokemonScreen(int index,
net.minecraft.util.text.ITextComponent titleText)
Initializes an editing Pokémon screen.
|
Modifier and Type | Method and Description |
---|---|
protected void |
changePokemon(Species species)
Changes the Pokémon into a different Pokémon.
|
protected void |
deletePokemon()
Deletes the Pokémon from the party.
|
java.util.List<Pokemon> |
getPokemonList()
Gets the list of party Pokémon that are being edited.
|
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
|
protected boolean |
showDeleteButton()
Checks if the delete Pokémon button should be displayed.
|
actionPerformed, charTyped, checkFields, createExtraTextField, drawBackgroundUnderMenus, drawExtraText, getExportText, getNextAvailablePosition, getPokemonSingle, getScreen, importText, init, keyPressed, mouseClickedUnderMenus, setPokemon
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
getPokemon
public TrainerEditorPokemonScreen(int index, net.minecraft.util.text.ITextComponent titleText)
index
- The index of the edited Pokémon in the Trainer's party.titleText
- The display title of the screen.protected boolean showDeleteButton()
IndividualEditorBaseScreen
showDeleteButton
in class IndividualEditorBaseScreen
protected void changePokemon(Species species)
IndividualEditorBaseScreen
changePokemon
in class IndividualEditorBaseScreen
species
- 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
public void setPokemon(Pokemon... pokemon)
IImportableContainer
pokemon
- The pokemon