public class ChooseMovesetScreen extends net.minecraft.client.gui.screen.Screen implements ClickableElement<Attack>
Modifier and Type | Field and Description |
---|---|
static java.util.List<Attack> |
chosenAttackList
The attacks that the Pokémon has chosen to learn.
|
static java.util.List<Attack> |
mainAttackList
The attacks that the Pokémon can learn.
|
Constructor and Description |
---|
ChooseMovesetScreen(Pokemon pokemon)
Initializes the GUI.
|
Modifier and Type | Method and Description |
---|---|
protected void |
actionPerformed(net.minecraft.client.gui.widget.button.Button button) |
boolean |
charTyped(char p_73869_1_,
int p_73869_2_) |
void |
elementClicked(java.util.List<Attack> list,
int index)
Does an action when a element is clicked.
|
void |
init() |
boolean |
isPauseScreen()
Returns true if this GUI should pause the game when it is displayed in single-player
|
void |
onClose() |
void |
render(com.mojang.blaze3d.matrix.MatrixStack matrix,
int mouseX,
int mouseY,
float partialTicks) |
addButton, addWidget, children, getMinecraft, getNarrationMessage, getTitle, 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 static java.util.List<Attack> mainAttackList
public static java.util.List<Attack> chosenAttackList
public ChooseMovesetScreen(Pokemon pokemon)
pokemon
- The Pokémon to choose moves for.public void init()
init
in class net.minecraft.client.gui.screen.Screen
public void onClose()
onClose
in class net.minecraft.client.gui.screen.Screen
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 void elementClicked(java.util.List<Attack> list, int index)
ClickableElement
elementClicked
in interface ClickableElement<Attack>
list
- The list that was clicked.index
- The index in the list that was clicked.public boolean charTyped(char p_73869_1_, int p_73869_2_)
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)
public boolean isPauseScreen()
isPauseScreen
in class net.minecraft.client.gui.screen.Screen