Class PressureGaugeModuleScreen
java.lang.Object
net.minecraft.client.gui.GuiComponent
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
me.desht.pneumaticcraft.client.gui.AbstractPneumaticCraftScreen
me.desht.pneumaticcraft.client.gui.tubemodule.AbstractTubeModuleScreen<AbstractTubeModule>
me.desht.pneumaticcraft.client.gui.tubemodule.PressureGaugeModuleScreen
- All Implemented Interfaces:
net.minecraft.client.gui.components.events.ContainerEventHandler,net.minecraft.client.gui.components.events.GuiEventListener,net.minecraft.client.gui.components.Renderable
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.gui.screens.Screen
net.minecraft.client.gui.screens.Screen.NarratableSearchResult -
Field Summary
Fields inherited from class me.desht.pneumaticcraft.client.gui.tubemodule.AbstractTubeModuleScreen
moduleFields inherited from class me.desht.pneumaticcraft.client.gui.AbstractPneumaticCraftScreen
guiLeft, guiTop, xSize, ySizeFields inherited from class net.minecraft.client.gui.screens.Screen
font, height, itemRenderer, minecraft, passEvents, renderables, title, widthFields inherited from class net.minecraft.client.gui.GuiComponent
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATIONFields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AbstractTubeModuleScreen<?>createGUI(AbstractTubeModule module) voiddrawForeground(com.mojang.blaze3d.vertex.PoseStack matrixStack, int mouseX, int mouseY, 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 net.minecraft.resources.ResourceLocationvoidinit()booleanmouseClicked(double mouseX, double mouseY, int mouseButton) booleanmouseDragged(double mouseX, double mouseY, int clickedMouseButton, double dx, double dy) booleanmouseReleased(double mouseX, double mouseY, int state) voidtick()Methods inherited from class me.desht.pneumaticcraft.client.gui.tubemodule.AbstractTubeModuleScreen
isPauseScreen, openGuiForModule, renderMethods inherited from class me.desht.pneumaticcraft.client.gui.AbstractPneumaticCraftScreen
addLabel, addLabelMethods inherited from class net.minecraft.client.gui.screens.Screen
addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, children, clearWidgets, findNarratableWidget, getMinecraft, getNarrationMessage, getTitle, getTooltipFromItem, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, hideWidgets, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, keyPressed, narrationEnabled, onClose, onFilesDrop, rebuildWidgets, removed, removeWidget, renderBackground, renderBackground, renderComponentHoverEffect, renderComponentTooltip, renderComponentTooltip, renderComponentTooltip, renderComponentTooltip, renderDirtBackground, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderWithTooltip, resize, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, shouldCloseOnEsc, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, wrapScreenErrorMethods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocusedMethods inherited from class net.minecraft.client.gui.GuiComponent
blit, blit, blit, blit, blit, blitOutlineBlack, disableScissor, drawCenteredString, drawCenteredString, drawCenteredString, drawString, drawString, drawString, enableScissor, fill, fillGradient, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLineMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.components.events.ContainerEventHandler
changeFocus, charTyped, getChildAt, keyReleased, magicalSpecialHackyFocus, mouseScrolled, setInitialFocusMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
mouseMoved
-
Constructor Details
-
PressureGaugeModuleScreen
-
-
Method Details
-
createGUI
-
init
public void init()- Overrides:
initin classAbstractPneumaticCraftScreen
-
getTexture
protected net.minecraft.resources.ResourceLocation getTexture()- Specified by:
getTexturein classAbstractPneumaticCraftScreen
-
drawForeground
public void drawForeground(com.mojang.blaze3d.vertex.PoseStack matrixStack, int mouseX, int mouseY, float partialTicks) Description copied from class:AbstractPneumaticCraftScreenDo GUI-specific foreground drawing here rather than overriding render(), so that tooltips drawn by render are drawn last and stay on top.- Overrides:
drawForegroundin classAbstractPneumaticCraftScreen- Parameters:
matrixStack- the matrix stackmouseX- mouse XmouseY- mouse YpartialTicks- partial ticks
-
mouseClicked
public boolean mouseClicked(double mouseX, double mouseY, int mouseButton) -
mouseDragged
public boolean mouseDragged(double mouseX, double mouseY, int clickedMouseButton, double dx, double dy) -
mouseReleased
public boolean mouseReleased(double mouseX, double mouseY, int state) -
tick
public void tick()- Overrides:
tickin classAbstractPneumaticCraftScreen
-