public abstract class GuiPneumaticScreenBase
extends net.minecraft.client.gui.screen.Screen
| Modifier and Type | Field and Description |
|---|---|
int |
guiLeft |
int |
guiTop |
int |
xSize |
int |
ySize |
| Constructor and Description |
|---|
GuiPneumaticScreenBase(net.minecraft.util.text.ITextComponent title) |
| Modifier and Type | Method and Description |
|---|---|
protected <T extends net.minecraft.client.gui.widget.Widget> |
addButton(T widget) |
protected WidgetLabel |
addLabel(net.minecraft.util.text.ITextComponent text,
int x,
int y) |
protected WidgetLabel |
addLabel(net.minecraft.util.text.ITextComponent text,
int x,
int y,
WidgetLabel.Alignment alignment) |
protected void |
drawForeground(com.mojang.blaze3d.matrix.MatrixStack matrixStack,
int x,
int y,
float partialTicks)
Do GUI-specific foreground drawing here rather than overriding render(), so that tooltips drawn by render are
drawn last and stay on top.
|
protected abstract net.minecraft.util.ResourceLocation |
getTexture() |
void |
init() |
boolean |
mouseReleased(double pMouseX,
double pMouseY,
int pButton) |
protected void |
removeWidget(net.minecraft.client.gui.widget.Widget widget) |
void |
render(com.mojang.blaze3d.matrix.MatrixStack matrixStack,
int x,
int y,
float partialTicks) |
void |
tick() |
addWidget, children, getMinecraft, getNarrationMessage, getTitle, getTooltipFromItem, handleComponentClicked, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, keyPressed, onClose, onFilesDrop, removed, renderBackground, renderBackground, renderComponentHoverEffect, renderComponentTooltip, renderDirtBackground, renderTooltip, renderTooltip, renderTooltip, renderToolTip, renderWrappedToolTip, resize, sendMessage, sendMessage, shouldCloseOnEsc, 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 int guiLeft
public int guiTop
public int xSize
public int ySize
public GuiPneumaticScreenBase(net.minecraft.util.text.ITextComponent title)
public void init()
init in class net.minecraft.client.gui.screen.Screenprotected abstract net.minecraft.util.ResourceLocation getTexture()
protected WidgetLabel addLabel(net.minecraft.util.text.ITextComponent text, int x, int y)
protected WidgetLabel addLabel(net.minecraft.util.text.ITextComponent text, int x, int y, WidgetLabel.Alignment alignment)
protected <T extends net.minecraft.client.gui.widget.Widget> T addButton(T widget)
addButton in class net.minecraft.client.gui.screen.Screenprotected void removeWidget(net.minecraft.client.gui.widget.Widget widget)
public boolean mouseReleased(double pMouseX,
double pMouseY,
int pButton)
public void tick()
tick in interface net.minecraft.client.gui.screen.IScreentick in class net.minecraft.client.gui.screen.Screenpublic void render(com.mojang.blaze3d.matrix.MatrixStack matrixStack,
int x,
int y,
float partialTicks)
render in interface net.minecraft.client.gui.IRenderablerender in class net.minecraft.client.gui.screen.Screenprotected void drawForeground(com.mojang.blaze3d.matrix.MatrixStack matrixStack,
int x,
int y,
float partialTicks)
matrixStack - the matrix stackx - mouse Xy - mouse YpartialTicks - partial ticks