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, removeDropDown
addButton, 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, 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 PokeDisplayEditor(net.minecraft.util.math.BlockPos tileEntity)
public void init()
init
in class DropDownScreen
public 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.IGuiEventListener
keyPressed
in interface net.minecraft.client.gui.INestedGuiEventHandler
keyPressed
in class net.minecraft.client.gui.screen.Screen
public void setLabel(java.lang.String s)
public boolean mouseClicked(double mouseX, double mouseY, int button)
mouseClicked
in interface net.minecraft.client.gui.IGuiEventListener
mouseClicked
in interface net.minecraft.client.gui.INestedGuiEventHandler
mouseClicked
in class DropDownScreen
public boolean mouseScrolled(double mouseX, double mouseY, double delta)
mouseScrolled
in interface net.minecraft.client.gui.IGuiEventListener
mouseScrolled
in interface net.minecraft.client.gui.INestedGuiEventHandler
mouseScrolled
in class DropDownScreen
public void onClose()
onClose
in class net.minecraft.client.gui.screen.Screen
public boolean mouseClickedUnderMenus(double x, double y, int mouseButton)
DropDownScreen
mouseClickedUnderMenus
in class DropDownScreen
x
- 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.IRenderable
render
in class DropDownScreen
public boolean isMouseOver(double mouseX, double mouseY)
isMouseOver
in interface net.minecraft.client.gui.IGuiEventListener
isMouseOver
in class net.minecraft.client.gui.screen.Screen
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 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.IGuiEventListener
mouseDragged
in interface net.minecraft.client.gui.INestedGuiEventHandler
mouseDragged
in class DropDownScreen
public boolean mouseReleased(double mouseX, double mouseY, int button)
public boolean isPauseScreen()
isPauseScreen
in class DropDownScreen
public void renderBackground(com.mojang.blaze3d.matrix.MatrixStack matrix)
renderBackground
in class net.minecraft.client.gui.screen.Screen