public abstract class PartyEditorBaseScreen extends net.minecraft.client.gui.screen.Screen implements IImportableContainer
| Modifier and Type | Field and Description |
|---|---|
java.util.List<Pokemon> |
pokemonList
The Pokémon in the party.
|
| Modifier | Constructor and Description |
|---|---|
protected |
PartyEditorBaseScreen(java.util.List<Pokemon> pokemonList)
Initializes the GUI.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
actionPerformed(net.minecraft.client.gui.widget.button.Button button) |
protected abstract void |
addPokemon(int partySlot)
Adds a new Pokémon to a certain party slot.
|
boolean |
charTyped(char key,
int par2) |
protected abstract void |
editPokemon(int partySlot)
Edits the Pokémon in a certain party slot.
|
static void |
editPokemonPacket(int partySlot)
Triggers the edit Pokémon screen from a packet.
|
protected abstract void |
exitScreen()
Navigates back to the previous screen.
|
java.lang.String |
getExportText()
Gets exportable text for the current Pokémon.
|
Pokemon[] |
getPokemon() |
net.minecraft.client.gui.screen.Screen |
getScreen()
Returns the screen containing the import/export.
|
abstract net.minecraft.util.text.ITextComponent |
getTitle()
Gets the displayed title of the screen.
|
java.lang.String |
importText(java.lang.String importText)
Parses import text and saves it to the current Pokémon.
|
void |
init() |
boolean |
isPauseScreen() |
boolean |
mouseClicked(double mouseX,
double mouseY,
int button) |
boolean |
mouseReleased(double mouseX,
double mouseY,
int button) |
void |
onClose() |
protected abstract void |
randomizeParty()
Randomizes the party Pokémon.
|
void |
render(com.mojang.blaze3d.matrix.MatrixStack matrix,
int mouseX,
int mouseY,
float partialTicks) |
void |
setPokemon(Pokemon... pokemon)
Sets the pokemon that was imported
|
protected abstract void |
updatePokemon(Pokemon pokemon) |
protected abstract void |
updatePokemon(Pokemon pokemon,
int slot) |
addButton, addWidget, children, getMinecraft, getNarrationMessage, 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, 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 java.util.List<Pokemon> pokemonList
protected PartyEditorBaseScreen(java.util.List<Pokemon> pokemonList)
pokemonList - The Pokémon in the party.public void init()
init in class net.minecraft.client.gui.screen.Screenpublic boolean mouseClicked(double mouseX,
double mouseY,
int button)
mouseClicked in interface net.minecraft.client.gui.IGuiEventListenermouseClicked in interface net.minecraft.client.gui.INestedGuiEventHandlerpublic boolean mouseReleased(double mouseX,
double mouseY,
int button)
mouseReleased in interface net.minecraft.client.gui.IGuiEventListenermouseReleased in interface net.minecraft.client.gui.INestedGuiEventHandlerpublic void render(com.mojang.blaze3d.matrix.MatrixStack matrix,
int mouseX,
int mouseY,
float partialTicks)
render in interface net.minecraft.client.gui.IRenderablerender in class net.minecraft.client.gui.screen.Screenpublic abstract net.minecraft.util.text.ITextComponent getTitle()
getTitle in class net.minecraft.client.gui.screen.Screenpublic boolean charTyped(char key,
int par2)
charTyped in interface net.minecraft.client.gui.IGuiEventListenercharTyped in interface net.minecraft.client.gui.INestedGuiEventHandlerprotected void actionPerformed(net.minecraft.client.gui.widget.button.Button button)
protected abstract void exitScreen()
protected abstract void randomizeParty()
protected abstract void addPokemon(int partySlot)
partySlot - The party slot to add a Pokémon to.protected abstract void editPokemon(int partySlot)
partySlot - The party slot of the Pokémon to edit.public static void editPokemonPacket(int partySlot)
partySlot - The party slot of the Pokémon to edit.public java.lang.String getExportText()
IImportableContainergetExportText in interface IImportableContainerpublic void setPokemon(Pokemon... pokemon)
IImportableContainersetPokemon in interface IImportableContainerpokemon - The pokemonpublic Pokemon[] getPokemon()
getPokemon in interface IImportableContainerpublic java.lang.String importText(java.lang.String importText)
IImportableContainerimportText in interface IImportableContainerimportText - The text to save to the current Pokémon.protected abstract void updatePokemon(Pokemon pokemon)
protected abstract void updatePokemon(Pokemon pokemon, int slot)
public net.minecraft.client.gui.screen.Screen getScreen()
IImportableContainergetScreen in interface IImportableContainerpublic boolean isPauseScreen()
isPauseScreen in class net.minecraft.client.gui.screen.Screenpublic void onClose()
onClose in class net.minecraft.client.gui.screen.Screen