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, 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 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.Screen
public boolean mouseClicked(double mouseX, double mouseY, int button)
mouseClicked
in interface net.minecraft.client.gui.IGuiEventListener
mouseClicked
in interface net.minecraft.client.gui.INestedGuiEventHandler
public boolean mouseReleased(double mouseX, double mouseY, int button)
mouseReleased
in interface net.minecraft.client.gui.IGuiEventListener
mouseReleased
in interface net.minecraft.client.gui.INestedGuiEventHandler
public void render(com.mojang.blaze3d.matrix.MatrixStack matrix, int mouseX, int mouseY, float partialTicks)
render
in interface net.minecraft.client.gui.IRenderable
render
in class net.minecraft.client.gui.screen.Screen
public abstract net.minecraft.util.text.ITextComponent getTitle()
getTitle
in class net.minecraft.client.gui.screen.Screen
public boolean charTyped(char key, int par2)
charTyped
in interface net.minecraft.client.gui.IGuiEventListener
charTyped
in interface net.minecraft.client.gui.INestedGuiEventHandler
protected 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()
IImportableContainer
getExportText
in interface IImportableContainer
public void setPokemon(Pokemon... pokemon)
IImportableContainer
setPokemon
in interface IImportableContainer
pokemon
- The pokemonpublic Pokemon[] getPokemon()
getPokemon
in interface IImportableContainer
public java.lang.String importText(java.lang.String importText)
IImportableContainer
importText
in interface IImportableContainer
importText
- 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()
IImportableContainer
getScreen
in interface IImportableContainer
public boolean isPauseScreen()
isPauseScreen
in class net.minecraft.client.gui.screen.Screen
public void onClose()
onClose
in class net.minecraft.client.gui.screen.Screen