public class PokeDisplayEditor extends DropDownScreen
dropDownManager, guiLeft, guiTop, xSize, ySize| Constructor and Description |
|---|
PokeDisplayEditor(net.minecraft.util.math.BlockPos tileEntity)
Initializes the GUI.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
actionPerformed(net.minecraft.client.gui.widget.button.Button guiButton) |
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 |
drawEntityToScreen(com.mojang.blaze3d.matrix.MatrixStack matrix,
int x,
int y,
int w,
int l,
PixelmonEntity e,
float pt,
boolean spin)
Draws the statue model on the GUI.
|
void |
init() |
boolean |
isMouseOver(double mouseX,
double mouseY) |
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_) |
boolean |
mouseClicked(double mouseX,
double mouseY,
int button) |
boolean |
mouseClickedUnderMenus(double x,
double y,
int mouseButton)
Handles mouse input when a drop-down menu is not clicked.
|
boolean |
mouseDragged(double mouseX,
double mouseY,
int button,
double dragX,
double dragY) |
boolean |
mouseReleased(double mouseX,
double mouseY,
int button) |
boolean |
mouseScrolled(double mouseX,
double mouseY,
double delta) |
void |
onClose()
Saves the fields in the GUI and closes it.
|
void |
render(com.mojang.blaze3d.matrix.MatrixStack matrix,
int mouseX,
int mouseY,
float partialTicks) |
void |
renderBackground(com.mojang.blaze3d.matrix.MatrixStack matrix) |
void |
setLabel(java.lang.String s) |
void |
setSpecies(java.lang.String s) |
addDropDown, disableMenus, drawGuiContainerBackgroundLayer, drawGuiContainerForegroundLayer, removeDropDownaddButton, addWidget, children, getMinecraft, getNarrationMessage, getTitle, getTooltipFromItem, handleComponentClicked, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isPaste, isSelectAll, isValidCharacterForName, onFilesDrop, removed, 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 PokeDisplayEditor(net.minecraft.util.math.BlockPos tileEntity)
public void init()
init in class DropDownScreenpublic void setSpecies(java.lang.String s)
public 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.Screenpublic void setLabel(java.lang.String s)
public boolean mouseClicked(double mouseX,
double mouseY,
int button)
mouseClicked in interface net.minecraft.client.gui.IGuiEventListenermouseClicked in interface net.minecraft.client.gui.INestedGuiEventHandlermouseClicked in class DropDownScreenpublic boolean mouseScrolled(double mouseX,
double mouseY,
double delta)
mouseScrolled in interface net.minecraft.client.gui.IGuiEventListenermouseScrolled in interface net.minecraft.client.gui.INestedGuiEventHandlermouseScrolled in class DropDownScreenpublic void onClose()
onClose in class net.minecraft.client.gui.screen.Screenpublic boolean mouseClickedUnderMenus(double x,
double y,
int mouseButton)
DropDownScreenmouseClickedUnderMenus in class DropDownScreenx - The x coordinate of the mouse.y - The y coordinate of the mouse.mouseButton - The index of the clicked button.protected void actionPerformed(net.minecraft.client.gui.widget.button.Button guiButton)
public void render(com.mojang.blaze3d.matrix.MatrixStack matrix,
int mouseX,
int mouseY,
float partialTicks)
render in interface net.minecraft.client.gui.IRenderablerender in class DropDownScreenpublic boolean isMouseOver(double mouseX,
double mouseY)
isMouseOver in interface net.minecraft.client.gui.IGuiEventListenerisMouseOver 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 drawEntityToScreen(com.mojang.blaze3d.matrix.MatrixStack matrix,
int x,
int y,
int w,
int l,
PixelmonEntity e,
float pt,
boolean spin)
x - The x coordinate of the model.y - The y coordinate of the model.w - The width of the model.l - The length of the model.e - The statue to draw.pt - The partial ticks that have elapsed.spin - Whether the model will spin.public boolean mouseDragged(double mouseX,
double mouseY,
int button,
double dragX,
double dragY)
mouseDragged in interface net.minecraft.client.gui.IGuiEventListenermouseDragged in interface net.minecraft.client.gui.INestedGuiEventHandlermouseDragged in class DropDownScreenpublic boolean mouseReleased(double mouseX,
double mouseY,
int button)
public boolean isPauseScreen()
isPauseScreen in class DropDownScreenpublic void renderBackground(com.mojang.blaze3d.matrix.MatrixStack matrix)
renderBackground in class net.minecraft.client.gui.screen.Screen