public class RelearnerScreen extends net.minecraft.client.gui.screen.Screen implements ClickableElement<Attack>
Modifier and Type | Field and Description |
---|---|
static java.util.List<Attack> |
attackList
The attacks offered by the relearner.
|
Constructor and Description |
---|
RelearnerScreen(Pokemon pokemon)
Initializes the GUI.
|
Modifier and Type | Method and Description |
---|---|
protected void |
actionPerformed(net.minecraft.client.gui.widget.button.Button button) |
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 |
render(com.mojang.blaze3d.matrix.MatrixStack matrix,
int mouseX,
int mouseY,
float mFloat) |
addButton, addWidget, children, getMinecraft, getNarrationMessage, getTitle, getTooltipFromItem, handleComponentClicked, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, keyPressed, 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 static java.util.List<Attack> attackList
public RelearnerScreen(Pokemon pokemon)
pokemon
- The Pokémon to relearn moves.public void init()
init
in class net.minecraft.client.gui.screen.Screen
public void render(com.mojang.blaze3d.matrix.MatrixStack matrix, int mouseX, int mouseY, float mFloat)
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 isPauseScreen()
isPauseScreen
in class net.minecraft.client.gui.screen.Screen
protected void actionPerformed(net.minecraft.client.gui.widget.button.Button button)