public class TutorEditorScreen extends DropDownScreen implements net.minecraft.client.gui.INestedGuiEventHandler, ClickableElement<NPCTutor.LearnableMove>
| Modifier and Type | Field and Description |
|---|---|
static java.util.EnumSet<BaseStatsLearnType> |
learnTypes |
dropDownManager, guiLeft, guiTop, xSize, ySize| Constructor and Description |
|---|
TutorEditorScreen(int tutorID)
Initializes the GUI.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
actionPerformed(net.minecraft.client.gui.widget.button.Button button) |
boolean |
charTyped(char key,
int keyCode) |
protected void |
drawBackgroundUnderMenus(com.mojang.blaze3d.matrix.MatrixStack matrix,
float partialTicks,
int mouseX,
int mouseY)
Draws the screen background under the drop-down menus.
|
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
|
boolean |
keyPressed(int p_231046_1_,
int p_231046_2_,
int p_231046_3_) |
void |
onClose() |
addDropDown, disableMenus, drawGuiContainerBackgroundLayer, drawGuiContainerForegroundLayer, mouseClicked, mouseClickedUnderMenus, mouseDragged, mouseScrolled, removeDropDown, renderaddButton, addWidget, children, getMinecraft, getNarrationMessage, getTitle, getTooltipFromItem, handleComponentClicked, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, 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 static java.util.EnumSet<BaseStatsLearnType> learnTypes
public TutorEditorScreen(int tutorID)
tutorID - The ID of the tutor being edited.public void init()
init in class DropDownScreenpublic void onClose()
onClose in class net.minecraft.client.gui.screen.Screenprotected void drawBackgroundUnderMenus(com.mojang.blaze3d.matrix.MatrixStack matrix,
float partialTicks,
int mouseX,
int mouseY)
DropDownScreendrawBackgroundUnderMenus in class DropDownScreenpartialTicks - The current number of partial ticks.mouseX - The x coordinate of the mouse.mouseY - The y coordinate of the mouse.public void elementClicked(java.util.List<NPCTutor.LearnableMove> list, int index)
ClickableElementelementClicked in interface ClickableElement<NPCTutor.LearnableMove>list - The list that was clicked.index - The index in the list that was clicked.public boolean charTyped(char key,
int keyCode)
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)
public boolean isPauseScreen()
isPauseScreen in class DropDownScreenpublic boolean keyPressed(int p_231046_1_,
int p_231046_2_,
int p_231046_3_)
keyPressed in interface net.minecraft.client.gui.IGuiEventListenerkeyPressed in interface net.minecraft.client.gui.INestedGuiEventHandlerkeyPressed in class net.minecraft.client.gui.screen.Screen