Class ContainerScreenContainerTankInventory<C extends ContainerInventoryTickingTank<T>,T extends BlockEntityTickingTankInventory<T>>

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<T>
org.cyclops.cyclopscore.client.gui.container.ContainerScreenExtended<C>
org.cyclops.evilcraft.core.client.gui.container.ContainerScreenContainerTankInventory<C,T>
Type Parameters:
T - The BlockEntityTankInventory class, mostly just the extension class.
All Implemented Interfaces:
net.minecraft.client.gui.components.events.ContainerEventHandler, net.minecraft.client.gui.components.events.GuiEventListener, net.minecraft.client.gui.components.Renderable, net.minecraft.client.gui.components.TabOrderedElement, net.minecraft.client.gui.screens.inventory.MenuAccess<C>, org.cyclops.cyclopscore.inventory.IValueNotifiable
Direct Known Subclasses:
ContainerScreenBloodChest, ContainerScreenTileWorking

public abstract class ContainerScreenContainerTankInventory<C extends ContainerInventoryTickingTank<T>,T extends BlockEntityTickingTankInventory<T>> extends org.cyclops.cyclopscore.client.gui.container.ContainerScreenExtended<C>
A GUI container that has support for the display of inventories and a tank.
  • 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 org.cyclops.cyclopscore.client.gui.container.ContainerScreenExtended

    container, offsetX, offsetY, texture

    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, LIGHT_DIRT_BACKGROUND, STATS_ICON_LOCATION

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

    DOUBLE_CLICK_THRESHOLD_MS
  • Constructor Summary

    Constructors
    Constructor
    Description
    ContainerScreenContainerTankInventory(C container, net.minecraft.world.entity.player.Inventory playerInventory, net.minecraft.network.chat.Component title)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    drawAdditionalForeground(com.mojang.blaze3d.vertex.PoseStack matrixStack, int mouseX, int mouseY)
     
    protected void
    drawBarTooltipTank(com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.network.chat.Component name, net.minecraftforge.fluids.FluidStack fluidStack, int amount, int capacity, int x, int y)
     
    void
    drawCurrentScreen(com.mojang.blaze3d.vertex.PoseStack matrixStack, int mouseX, int mouseY, float gameTicks)
     
    protected void
    drawForgegroundString(com.mojang.blaze3d.vertex.PoseStack matrixStack)
     
    protected void
    drawTank(com.mojang.blaze3d.vertex.PoseStack matrixStack, int xOffset, int yOffset, net.minecraft.world.level.material.Fluid fluid, int level)
     
    protected void
    drawTooltips(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY)
     
    protected abstract net.minecraft.network.chat.Component
     
    protected int
    getProgressXScaled(int width)
     
    protected int
    getProgressYScaled(int height)
     
    protected boolean
     
    protected void
    renderBg(com.mojang.blaze3d.vertex.PoseStack matrixStack, float f, int x, int y)
     
    protected void
    renderLabels(com.mojang.blaze3d.vertex.PoseStack matrixStack, int mouseX, int mouseY)
     
    protected void
    setProgress(int progressWidth, int progressHeight, int progressX, int progressY, int progressTargetX, int progressTargetY)
     
    protected void
    setTank(int tankWidth, int tankHeight, int tankX, int tankY, int tankTargetX, int tankTargetY)
     
    protected boolean
    shouldRenderTank(net.minecraftforge.fluids.FluidStack fluidStack)
     

    Methods inherited from class org.cyclops.cyclopscore.client.gui.container.ContainerScreenExtended

    constructGuiTexture, createServerPressable, drawTooltip, getBaseXSize, getBaseYSize, getGuiLeftTotal, getGuiTexture, getGuiTopTotal, getValueNotifiableType, init, isHovering, isHovering, isPointInRegion, onUpdate, refreshValues, render

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

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

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

    added, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, changeFocus, children, clearWidgets, findNarratableWidget, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, hideWidgets, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, narrationEnabled, onFilesDrop, rebuildWidgets, removeWidget, renderBackground, renderComponentHoverEffect, renderComponentTooltip, renderComponentTooltip, renderComponentTooltip, renderComponentTooltip, renderDirtBackground, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderWithTooltip, repositionElements, resize, setInitialFocus, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, shouldCloseOnEsc, shouldNarrateNavigation, 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, blit, blitNineSliced, blitNineSliced, blitNineSliced, blitOutlineBlack, blitRepeating, disableScissor, drawCenteredString, drawCenteredString, drawCenteredString, drawString, drawString, drawString, enableScissor, fill, fill, fillGradient, fillGradient, fillGradient, hLine, renderOutline, 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

    charTyped, getChildAt, getCurrentFocusPath, isFocused, keyReleased, magicalSpecialHackyFocus, mouseScrolled, nextFocusPath, setFocused

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

    mouseMoved

    Methods inherited from interface net.minecraft.client.gui.components.TabOrderedElement

    getTabOrderGroup
  • Constructor Details

    • ContainerScreenContainerTankInventory

      public ContainerScreenContainerTankInventory(C container, net.minecraft.world.entity.player.Inventory playerInventory, net.minecraft.network.chat.Component title)
  • Method Details

    • setTank

      protected void setTank(int tankWidth, int tankHeight, int tankX, int tankY, int tankTargetX, int tankTargetY)
    • setProgress

      protected void setProgress(int progressWidth, int progressHeight, int progressX, int progressY, int progressTargetX, int progressTargetY)
    • isShowProgress

      protected boolean isShowProgress()
    • getProgressXScaled

      protected int getProgressXScaled(int width)
    • getProgressYScaled

      protected int getProgressYScaled(int height)
    • renderBg

      protected void renderBg(com.mojang.blaze3d.vertex.PoseStack matrixStack, float f, int x, int y)
      Overrides:
      renderBg in class org.cyclops.cyclopscore.client.gui.container.ContainerScreenExtended<C extends ContainerInventoryTickingTank<T>>
    • getName

      protected abstract net.minecraft.network.chat.Component getName()
    • drawForgegroundString

      protected void drawForgegroundString(com.mojang.blaze3d.vertex.PoseStack matrixStack)
    • renderLabels

      protected void renderLabels(com.mojang.blaze3d.vertex.PoseStack matrixStack, int mouseX, int mouseY)
      Overrides:
      renderLabels in class net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<C extends ContainerInventoryTickingTank<T>>
    • drawAdditionalForeground

      protected void drawAdditionalForeground(com.mojang.blaze3d.vertex.PoseStack matrixStack, int mouseX, int mouseY)
    • drawCurrentScreen

      public void drawCurrentScreen(com.mojang.blaze3d.vertex.PoseStack matrixStack, int mouseX, int mouseY, float gameTicks)
      Overrides:
      drawCurrentScreen in class org.cyclops.cyclopscore.client.gui.container.ContainerScreenExtended<C extends ContainerInventoryTickingTank<T>>
    • shouldRenderTank

      protected boolean shouldRenderTank(net.minecraftforge.fluids.FluidStack fluidStack)
    • drawTank

      protected void drawTank(com.mojang.blaze3d.vertex.PoseStack matrixStack, int xOffset, int yOffset, net.minecraft.world.level.material.Fluid fluid, int level)
    • drawTooltips

      protected void drawTooltips(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY)
    • drawBarTooltipTank

      protected void drawBarTooltipTank(com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.network.chat.Component name, net.minecraftforge.fluids.FluidStack fluidStack, int amount, int capacity, int x, int y)