public class TutorScreen extends net.minecraft.client.gui.screen.Screen implements ClickableElement<NPCTutor.LearnableMove>, net.minecraft.client.gui.INestedGuiEventHandler
Modifier and Type | Field and Description |
---|---|
static java.util.List<NPCTutor.LearnableMove> |
moveList
The moves that the tutor can teach.
|
Constructor and Description |
---|
TutorScreen(Pokemon data,
int npcId)
Initializes the GUI.
|
Modifier and Type | Method and Description |
---|---|
protected void |
actionPerformed(net.minecraft.client.gui.widget.button.Button button) |
static void |
drawAttackInfoList(com.mojang.blaze3d.matrix.MatrixStack matrix,
ImmutableAttack a,
int width,
int height)
Draws information about an attack in a move list choose screen.
|
void |
elementClicked(java.util.List<NPCTutor.LearnableMove> 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
changeFocus, charTyped, children, getChildAt, getFocused, isDragging, keyPressed, keyReleased, magicalSpecialHackyFocus, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setDragging, setFocused, setInitialFocus
public static java.util.List<NPCTutor.LearnableMove> moveList
public TutorScreen(Pokemon data, int npcId)
data
- The Pokémon to teach moves to.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<NPCTutor.LearnableMove> list, int index)
ClickableElement
elementClicked
in interface ClickableElement<NPCTutor.LearnableMove>
list
- The list that was clicked.index
- The index in the list that was clicked.protected void actionPerformed(net.minecraft.client.gui.widget.button.Button button)
public boolean isPauseScreen()
isPauseScreen
in class net.minecraft.client.gui.screen.Screen
public static void drawAttackInfoList(com.mojang.blaze3d.matrix.MatrixStack matrix, ImmutableAttack a, int width, int height)
a
- The attack to draw information about.width
- The width of the screen.height
- The height of the screen.