public class QuestGiverNPCEditorScreen extends DropDownScreen
Modifier and Type | Field and Description |
---|---|
static boolean |
chatChanged
Whether the quest giver NPC's dialogue has been changed in the current editing session.
|
static java.util.ArrayList<java.lang.String> |
chatPages
The quest giver NPC's dialogue.
|
static int |
currentNPCID
The ID of the quest giver NPC being edited.
|
static java.lang.String |
name
The quest giver NPC's name.
|
static java.util.List<ClientNPCData> |
npcData
Data for all available quest giver NPCs.
|
dropDownManager, guiLeft, guiTop, xSize, ySize
Constructor and Description |
---|
QuestGiverNPCEditorScreen(int npcID)
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 par2) |
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 |
init() |
boolean |
isPauseScreen()
Returns true if this GUI should pause the game when it is displayed in single-player
|
boolean |
mouseClickedUnderMenus(double x,
double y,
int button)
Handles mouse input when a drop-down menu is not clicked.
|
addDropDown, disableMenus, drawGuiContainerBackgroundLayer, drawGuiContainerForegroundLayer, mouseClicked, mouseDragged, mouseScrolled, removeDropDown, render
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 int currentNPCID
public static java.util.ArrayList<java.lang.String> chatPages
public static boolean chatChanged
public static java.lang.String name
public static java.util.List<ClientNPCData> npcData
public QuestGiverNPCEditorScreen(int npcID)
npcID
- The ID of the quest giver NPC being edited.public void init()
init
in class DropDownScreen
protected void drawBackgroundUnderMenus(com.mojang.blaze3d.matrix.MatrixStack matrix, float partialTicks, int mouseX, int mouseY)
DropDownScreen
drawBackgroundUnderMenus
in class DropDownScreen
partialTicks
- The current number of partial ticks.mouseX
- The x coordinate of the mouse.mouseY
- The y coordinate of the mouse.public boolean charTyped(char key, int par2)
public boolean mouseClickedUnderMenus(double x, double y, int button)
DropDownScreen
mouseClickedUnderMenus
in class DropDownScreen
x
- The x coordinate of the mouse.y
- The y coordinate of the mouse.button
- The index of the clicked button.protected void actionPerformed(net.minecraft.client.gui.widget.button.Button button)
public boolean isPauseScreen()
isPauseScreen
in class DropDownScreen