Class AbstractPneumaticCraftContainerScreen<C extends AbstractPneumaticCraftMenu<T>,T extends AbstractPneumaticCraftBlockEntity>

java.lang.Object
net.minecraft.client.gui.GuiComponent
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<C>
me.desht.pneumaticcraft.client.gui.AbstractPneumaticCraftContainerScreen<C,T>
All Implemented Interfaces:
net.minecraft.client.gui.components.events.ContainerEventHandler, net.minecraft.client.gui.components.events.GuiEventListener, net.minecraft.client.gui.components.Widget, net.minecraft.client.gui.screens.inventory.MenuAccess<C>
Direct Known Subclasses:
AbstractLogisticsScreen, AbstractUpgradeManagerScreen, AerialInterfaceScreen, AirCannonScreen, AirCompressorScreen, AmadronAddTradeScreen, AmadronScreen, AssemblyControllerScreen, ChargingStationScreen, CreativeCompressedIronBlockScreen, CreativeCompressorScreen, ElectrostaticCompressorScreen, ElevatorScreen, EtchingTankScreen, FluidMixerScreen, FluidTankScreen, FluxCompressorScreen, GasLiftScreen, JackHammerSetupScreen, KeroseneLampScreen, LiquidCompressorScreen, LiquidHopperScreen, MinigunMagazineScreen, OmnidirectionalHopperScreen, PneumaticDoorBaseScreen, PneumaticDynamoScreen, PressureChamberInterfaceScreen, PressureChamberScreen, PressurizedSpawnerScreen, ProgrammableControllerScreen, ProgrammerScreen, RefineryControllerScreen, ReinforcedChestScreen, RemoteScreen, SecurityStationHackingScreen, SecurityStationInventoryScreen, SentryTurretScreen, SmartChestScreen, SolarCompressorScreen, SpawnerExtractorScreen, TagWorkbenchScreen, ThermalCompressorScreen, ThermopneumaticProcessingPlantScreen, UniversalSensorScreen, UVLightBoxScreen, VacuumPumpScreen, VacuumTrapScreen

public abstract class AbstractPneumaticCraftContainerScreen<C extends AbstractPneumaticCraftMenu<T>,T extends AbstractPneumaticCraftBlockEntity> extends net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<C>
  • 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
    final T
     

    Fields inherited from class net.minecraft.client.gui.screens.inventory.AbstractContainerScreen

    hoveredSlot, imageHeight, imageWidth, INVENTORY_LOCATION, inventoryLabelX, inventoryLabelY, isQuickCrafting, leftPos, menu, playerInventoryTitle, quickCraftSlots, SLOT_ITEM_BLIT_OFFSET, slotColor, titleLabelX, titleLabelY, topPos

    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
    AbstractPneumaticCraftContainerScreen(C container, net.minecraft.world.entity.player.Inventory inv, net.minecraft.network.chat.Component displayString)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    addAnimatedStat(net.minecraft.network.chat.Component title, int backgroundColor, boolean leftSided)
     
    addAnimatedStat(net.minecraft.network.chat.Component title, net.minecraft.resources.ResourceLocation icon, int backgroundColor, boolean leftSided)
     
    addAnimatedStat(net.minecraft.network.chat.Component title, net.minecraft.world.item.ItemStack icon, int backgroundColor, boolean leftSided)
     
    protected void
    addExtraVolumeModifierInfo(List<net.minecraft.network.chat.Component> text)
     
    protected void
    addInformation(List<net.minecraft.network.chat.Component> curInfo)
    Use this to add informational messages to the problems tab, which don't actually count as problems.
    protected void
    addInfoTab(List<net.minecraft.network.chat.Component> info)
     
    protected void
    addInfoTab(net.minecraft.network.chat.Component info)
     
    protected void
     
    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, int color)
     
    void
    addPressureInfo(List<net.minecraft.network.chat.Component> text, float curPressure, int volume, int baseVolume, int upgrades)
     
    protected void
    addPressureStatInfo(List<net.minecraft.network.chat.Component> pressureStatText)
     
    protected void
    addProblems(List<net.minecraft.network.chat.Component> curInfo)
    Use this to add problem information; situations that prevent the machine from operating.
    protected void
    addWarnings(List<net.minecraft.network.chat.Component> curInfo)
    Use this to add warning messages; the machine will run but with potential problems.
    void
     
    protected void
    Run the delayed action set up by sendDelayed()
    protected int
     
    protected PointXY
     
    protected abstract net.minecraft.resources.ResourceLocation
     
    protected PointXY
     
    protected PointXY
     
     
    List<net.minecraft.client.renderer.Rect2i>
     
    Collection<net.minecraftforge.fluids.FluidStack>
     
    Collection<net.minecraft.world.item.ItemStack>
     
    protected int
     
    void
     
    protected boolean
     
    boolean
    mouseDragged(double mouseX, double mouseY, int mouseButton, double dragX, double dragY)
     
    void
    Called when the client has received a PacketUpdateGui to sync something from the server-side container
    void
     
    void
    render(com.mojang.blaze3d.vertex.PoseStack matrixStack, int x, int y, float partialTick)
     
    protected void
    renderBg(com.mojang.blaze3d.vertex.PoseStack matrixStack, float partialTicks, int i, int j)
     
    protected void
    renderLabels(com.mojang.blaze3d.vertex.PoseStack matrixStack, int x, int y)
     
    protected void
    sendDelayed(int ticks)
    Schedule a delayed action to be done some time in the future.
    protected boolean
     
    protected boolean
     
    protected boolean
     
    protected boolean
     
    protected boolean
     
    protected boolean
     
    protected boolean
     
    protected boolean
     
    protected String
     

    Methods inherited from class net.minecraft.client.gui.screens.inventory.AbstractContainerScreen

    checkHotbarKeyPressed, clearDraggingState, getGuiLeft, getGuiTop, getMenu, getSlotColor, getSlotUnderMouse, getXSize, getYSize, hasClickedOutside, isHovering, isPauseScreen, keyPressed, mouseClicked, mouseReleased, onClose, renderSlotHighlight, renderSlotHighlight, renderTooltip, slotClicked, tick

    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, isSelectAll, isValidCharacterForName, narrationEnabled, onFilesDrop, rebuildWidgets, removeWidget, renderBackground, renderBackground, renderComponentHoverEffect, renderComponentTooltip, renderComponentTooltip, renderComponentTooltip, renderComponentTooltip, renderDirtBackground, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, resize, 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, mouseScrolled, setInitialFocus

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

    mouseMoved
  • Field Details

  • Constructor Details

    • AbstractPneumaticCraftContainerScreen

      public AbstractPneumaticCraftContainerScreen(C container, net.minecraft.world.entity.player.Inventory inv, net.minecraft.network.chat.Component displayString)
  • Method Details

    • init

      public void init()
      Overrides:
      init in class net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<C extends AbstractPneumaticCraftMenu<T>>
    • addAnimatedStat

      protected WidgetAnimatedStat addAnimatedStat(net.minecraft.network.chat.Component title, @Nonnull net.minecraft.world.item.ItemStack icon, int backgroundColor, boolean leftSided)
    • addAnimatedStat

      protected WidgetAnimatedStat addAnimatedStat(net.minecraft.network.chat.Component title, net.minecraft.resources.ResourceLocation icon, int backgroundColor, boolean leftSided)
    • addAnimatedStat

      protected WidgetAnimatedStat addAnimatedStat(net.minecraft.network.chat.Component title, int backgroundColor, boolean leftSided)
    • 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, int color)
    • getStatWidgets

      public List<IGuiAnimatedStat> getStatWidgets()
    • addJeiFilterInfoTab

      protected void addJeiFilterInfoTab()
    • upgradeCategory

      protected String upgradeCategory()
    • isUpgradeAvailable

      protected boolean isUpgradeAvailable(PNCUpgrade upgrade)
    • addInfoTab

      protected void addInfoTab(List<net.minecraft.network.chat.Component> info)
    • addInfoTab

      protected void addInfoTab(net.minecraft.network.chat.Component info)
    • shouldAddRedstoneTab

      protected boolean shouldAddRedstoneTab()
    • shouldAddPressureTab

      protected boolean shouldAddPressureTab()
    • shouldAddUpgradeTab

      protected boolean shouldAddUpgradeTab()
    • shouldAddInfoTab

      protected boolean shouldAddInfoTab()
    • shouldAddProblemTab

      protected boolean shouldAddProblemTab()
    • shouldAddSideConfigTabs

      protected boolean shouldAddSideConfigTabs()
    • getBackgroundTint

      protected int getBackgroundTint()
    • shouldDrawBackground

      protected boolean shouldDrawBackground()
    • renderBg

      protected void renderBg(com.mojang.blaze3d.vertex.PoseStack matrixStack, float partialTicks, int i, int j)
      Specified by:
      renderBg in class net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<C extends AbstractPneumaticCraftMenu<T>>
    • renderLabels

      protected void renderLabels(com.mojang.blaze3d.vertex.PoseStack matrixStack, int x, int y)
      Overrides:
      renderLabels in class net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<C extends AbstractPneumaticCraftMenu<T>>
    • getGuiTexture

      protected abstract net.minecraft.resources.ResourceLocation getGuiTexture()
    • mouseDragged

      public boolean mouseDragged(double mouseX, double mouseY, int mouseButton, double dragX, double dragY)
      Specified by:
      mouseDragged in interface net.minecraft.client.gui.components.events.ContainerEventHandler
      Specified by:
      mouseDragged in interface net.minecraft.client.gui.components.events.GuiEventListener
      Overrides:
      mouseDragged in class net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<C extends AbstractPneumaticCraftMenu<T>>
    • render

      public void render(com.mojang.blaze3d.vertex.PoseStack matrixStack, int x, int y, float partialTick)
      Specified by:
      render in interface net.minecraft.client.gui.components.Widget
      Overrides:
      render in class net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<C extends AbstractPneumaticCraftMenu<T>>
    • getGaugeLocation

      protected PointXY getGaugeLocation()
    • getTitleColor

      protected int getTitleColor()
    • getInvNameOffset

      protected PointXY getInvNameOffset()
    • getInvTextOffset

      protected PointXY getInvTextOffset()
    • containerTick

      public void containerTick()
      Overrides:
      containerTick in class net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<C extends AbstractPneumaticCraftMenu<T>>
    • addPressureStatInfo

      protected void addPressureStatInfo(List<net.minecraft.network.chat.Component> pressureStatText)
    • addPressureInfo

      public void addPressureInfo(List<net.minecraft.network.chat.Component> text, float curPressure, int volume, int baseVolume, int upgrades)
    • addExtraVolumeModifierInfo

      protected void addExtraVolumeModifierInfo(List<net.minecraft.network.chat.Component> text)
    • addProblems

      protected void addProblems(List<net.minecraft.network.chat.Component> curInfo)
      Use this to add problem information; situations that prevent the machine from operating.
      Parameters:
      curInfo - string list to append to
    • addInformation

      protected void addInformation(List<net.minecraft.network.chat.Component> curInfo)
      Use this to add informational messages to the problems tab, which don't actually count as problems.
      Parameters:
      curInfo - string list to append to, which may already contain some problem text
    • addWarnings

      protected void addWarnings(List<net.minecraft.network.chat.Component> curInfo)
      Use this to add warning messages; the machine will run but with potential problems.
      Parameters:
      curInfo - string list to append to, which may already contain some problem text
    • getTabRectangles

      public List<net.minecraft.client.renderer.Rect2i> getTabRectangles()
    • sendDelayed

      protected void sendDelayed(int ticks)
      Schedule a delayed action to be done some time in the future. Calling this again will reset the delay. Useful to avoid excessive network traffic if sending updates to the server from a textfield change.
      Parameters:
      ticks - number of ticks to delay
    • doDelayedAction

      protected void doDelayedAction()
      Run the delayed action set up by sendDelayed()
    • removed

      public void removed()
      Overrides:
      removed in class net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<C extends AbstractPneumaticCraftMenu<T>>
    • shouldParseVariablesInTooltips

      protected boolean shouldParseVariablesInTooltips()
    • onGuiUpdate

      public void onGuiUpdate()
      Called when the client has received a PacketUpdateGui to sync something from the server-side container
    • getTargetItems

      public Collection<net.minecraft.world.item.ItemStack> getTargetItems()
    • getTargetFluids

      public Collection<net.minecraftforge.fluids.FluidStack> getTargetFluids()