public class ShopkeeperEditorScreen extends DropDownScreen
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
json
Fields for the shopkeeper.
|
static java.lang.String |
name
Fields for the shopkeeper.
|
static java.util.List<ClientShopkeeperData> |
shopkeeperData
Data about all shopkeepers.
|
static int |
shopkeeperID
The ID of the shopkeeper being edited.
|
dropDownManager, guiLeft, guiTop, xSize, ySize| Constructor and Description |
|---|
ShopkeeperEditorScreen(int shopkeeperID)
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
|
void |
updateShopkeeper(java.lang.String texture)
Updates the shopkeeper when the JSON option is changed.
|
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, keyPressed, onClose, 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 int shopkeeperID
public static java.lang.String json
public static java.lang.String name
public static java.util.List<ClientShopkeeperData> shopkeeperData
public ShopkeeperEditorScreen(int shopkeeperID)
shopkeeperID - The ID of the shopkeeper being edited.public void init()
init in class DropDownScreenpublic void updateShopkeeper(java.lang.String texture)
texture - The new texture of the shopkeeper.protected 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 boolean charTyped(char key,
int par2)
protected void actionPerformed(net.minecraft.client.gui.widget.button.Button button)
public boolean isPauseScreen()
isPauseScreen in class DropDownScreen