Class AbstractPneumaticCraftScreen

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
All Implemented Interfaces:
net.minecraft.client.gui.components.events.ContainerEventHandler, net.minecraft.client.gui.components.events.GuiEventListener, net.minecraft.client.gui.components.Renderable
Direct Known Subclasses:
AbstractProgWidgetScreen, AbstractTubeModuleScreen, ArmorColoringScreen, ArmorMainScreen, ArmorStatMoveScreen, BasicRemoteOptionScreen, ClassifyFilterScreen, GPSToolScreen, MicromissileScreen, PastebinScreen

public abstract class AbstractPneumaticCraftScreen extends net.minecraft.client.gui.screens.Screen
  • 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
    Modifier and Type
    Field
    Description
    int
     
    int
     
    int
     
    int
     

    Fields inherited from class net.minecraft.client.gui.screens.Screen

    font, height, itemRenderer, minecraft, passEvents, renderables, title, width

    Fields inherited from class net.minecraft.client.gui.GuiComponent

    BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION

    Fields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener

    DOUBLE_CLICK_THRESHOLD_MS
  • Constructor Summary

    Constructors
    Constructor
    Description
    AbstractPneumaticCraftScreen(net.minecraft.network.chat.Component title)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected WidgetLabel
    addLabel(net.minecraft.network.chat.Component text, int x, int y)
     
    protected WidgetLabel
    addLabel(net.minecraft.network.chat.Component text, int x, int y, WidgetLabel.Alignment alignment)
     
    protected void
    drawForeground(com.mojang.blaze3d.vertex.PoseStack 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.resources.ResourceLocation
     
    void
     
    void
    render(com.mojang.blaze3d.vertex.PoseStack matrixStack, int x, int y, float partialTicks)
     
    void
     

    Methods 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, isPauseScreen, 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, wrapScreenError

    Methods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler

    getFocused, isDragging, setDragging, setFocused

    Methods 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, vLine

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.minecraft.client.gui.components.events.ContainerEventHandler

    changeFocus, charTyped, getChildAt, keyReleased, magicalSpecialHackyFocus, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setInitialFocus

    Methods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener

    mouseMoved
  • Field Details

    • guiLeft

      public int guiLeft
    • guiTop

      public int guiTop
    • xSize

      public int xSize
    • ySize

      public int ySize
  • Constructor Details

    • AbstractPneumaticCraftScreen

      public AbstractPneumaticCraftScreen(net.minecraft.network.chat.Component title)
  • Method Details

    • init

      public void init()
      Overrides:
      init in class net.minecraft.client.gui.screens.Screen
    • getTexture

      protected abstract net.minecraft.resources.ResourceLocation getTexture()
    • addLabel

      protected WidgetLabel addLabel(net.minecraft.network.chat.Component text, int x, int y)
    • addLabel

      protected WidgetLabel addLabel(net.minecraft.network.chat.Component text, int x, int y, WidgetLabel.Alignment alignment)
    • tick

      public void tick()
      Overrides:
      tick in class net.minecraft.client.gui.screens.Screen
    • render

      public void render(com.mojang.blaze3d.vertex.PoseStack matrixStack, int x, int y, float partialTicks)
      Specified by:
      render in interface net.minecraft.client.gui.components.Renderable
      Overrides:
      render in class net.minecraft.client.gui.screens.Screen
    • drawForeground

      protected void drawForeground(com.mojang.blaze3d.vertex.PoseStack 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.
      Parameters:
      matrixStack - the matrix stack
      x - mouse X
      y - mouse Y
      partialTicks - partial ticks