Class UContainerMenuScreen<T extends net.minecraft.world.inventory.AbstractContainerMenu>

java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<T>
info.u_team.u_team_core.screen.FluidContainerMenuScreen<T>
info.u_team.u_team_core.screen.UContainerMenuScreen<T>
All Implemented Interfaces:
PerspectiveRenderable, TooltipRenderable, 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<T>

public class UContainerMenuScreen<T extends net.minecraft.world.inventory.AbstractContainerMenu> extends FluidContainerMenuScreen<T> implements PerspectiveRenderable, TooltipRenderable
  • Nested Class Summary

    Nested classes/interfaces inherited from class info.u_team.u_team_core.screen.FluidContainerMenuScreen

    FluidContainerMenuScreen.FluidContainerScreenDelegator

    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
    protected net.minecraft.resources.ResourceLocation
     
    protected RGBA
     
    protected int
     
    protected int
     
    protected static final RGBA
     
    protected boolean
     
    protected boolean
     
    protected RGBA
     

    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, titleLabelX, titleLabelY, topPos

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

    BACKGROUND_LOCATION, font, height, minecraft, screenExecutor, title, width

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

    DOUBLE_CLICK_THRESHOLD_MS
  • Constructor Summary

    Constructors
    Constructor
    Description
    UContainerMenuScreen(T menu, net.minecraft.world.entity.player.Inventory playerInventory, net.minecraft.network.chat.Component title, net.minecraft.resources.ResourceLocation background)
     
    UContainerMenuScreen(T menu, net.minecraft.world.entity.player.Inventory playerInventory, net.minecraft.network.chat.Component title, net.minecraft.resources.ResourceLocation background, int imageWidth, int imageHeight)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    boolean
    mouseDragged(double mouseX, double mouseY, int button, double dragX, double dragY)
     
    void
    render(net.minecraft.client.gui.GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTick)
     
    void
    renderBackground(net.minecraft.client.gui.GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTick)
     
    protected void
    renderBg(net.minecraft.client.gui.GuiGraphics guiGraphics, float partialTick, int mouseX, int mouseY)
     
    void
    renderForeground(net.minecraft.client.gui.GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTick)
     
    protected void
    renderLabels(net.minecraft.client.gui.GuiGraphics guiGraphics, int mouseX, int mouseY)
     
    void
    renderTooltip(net.minecraft.client.gui.GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTick)
     
    protected void
    setBackground(net.minecraft.resources.ResourceLocation background)
     
    protected void
     
    protected void
    setBackgroundDimensions(int backgroundWidth, int backgroundHeight)
     
    protected void
     
    protected void
    setDrawText(boolean drawTitleText, boolean drawInventoryText)
     
    protected void
    setImageDimensions(int imageWidth, int imageHeight)
     
    protected void
    setTextLocation(int titleLabelX, int titleLabelY, int inventoryLabelX, int inventoryLabelY)
     

    Methods inherited from class info.u_team.u_team_core.screen.FluidContainerMenuScreen

    getDelegator, mouseClicked, renderTooltip

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

    checkHotbarKeyPressed, clearDraggingState, getMenu, getTooltipFromContainerItem, hasClickedOutside, init, isHovering, isPauseScreen, keyPressed, mouseReleased, onClose, removed, renderSlotHighlight, slotClicked, tick

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

    added, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, changeFocus, children, clearWidgets, findNarratableWidget, getBackgroundMusic, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, hideWidgets, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, narrationEnabled, onFilesDrop, rebuildWidgets, removeWidget, renderBackground, renderDirtBackground, 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 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
  • Field Details

    • DEFAULT_TEXT_COLOR

      protected static final RGBA DEFAULT_TEXT_COLOR
    • background

      protected net.minecraft.resources.ResourceLocation background
    • backgroundWidth

      protected int backgroundWidth
    • backgroundHeight

      protected int backgroundHeight
    • backgroundColor

      protected RGBA backgroundColor
    • drawTitleText

      protected boolean drawTitleText
    • drawInventoryText

      protected boolean drawInventoryText
    • textColor

      protected RGBA textColor
  • Constructor Details

    • UContainerMenuScreen

      public UContainerMenuScreen(T menu, net.minecraft.world.entity.player.Inventory playerInventory, net.minecraft.network.chat.Component title, net.minecraft.resources.ResourceLocation background, int imageWidth, int imageHeight)
    • UContainerMenuScreen

      public UContainerMenuScreen(T menu, net.minecraft.world.entity.player.Inventory playerInventory, net.minecraft.network.chat.Component title, net.minecraft.resources.ResourceLocation background)
  • Method Details

    • setBackground

      protected void setBackground(net.minecraft.resources.ResourceLocation background)
    • setBackgroundDimensions

      protected void setBackgroundDimensions(int size)
    • setBackgroundDimensions

      protected void setBackgroundDimensions(int backgroundWidth, int backgroundHeight)
    • setImageDimensions

      protected void setImageDimensions(int imageWidth, int imageHeight)
    • setDrawText

      protected void setDrawText(boolean drawTitleText, boolean drawInventoryText)
    • setDefaultTextLocation

      protected void setDefaultTextLocation()
    • setTextLocation

      protected void setTextLocation(int titleLabelX, int titleLabelY, int inventoryLabelX, int inventoryLabelY)
    • render

      public void render(net.minecraft.client.gui.GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTick)
      Specified by:
      render in interface PerspectiveRenderable
      Specified by:
      render in interface net.minecraft.client.gui.components.Renderable
      Overrides:
      render in class net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<T extends net.minecraft.world.inventory.AbstractContainerMenu>
    • renderBackground

      public void renderBackground(net.minecraft.client.gui.GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTick)
      Specified by:
      renderBackground in interface PerspectiveRenderable
    • renderForeground

      public void renderForeground(net.minecraft.client.gui.GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTick)
      Specified by:
      renderForeground in interface PerspectiveRenderable
    • renderTooltip

      public void renderTooltip(net.minecraft.client.gui.GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTick)
      Specified by:
      renderTooltip in interface TooltipRenderable
    • renderLabels

      protected void renderLabels(net.minecraft.client.gui.GuiGraphics guiGraphics, int mouseX, int mouseY)
      Overrides:
      renderLabels in class FluidContainerMenuScreen<T extends net.minecraft.world.inventory.AbstractContainerMenu>
    • renderBg

      protected void renderBg(net.minecraft.client.gui.GuiGraphics guiGraphics, float partialTick, int mouseX, int mouseY)
      Specified by:
      renderBg in class net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<T extends net.minecraft.world.inventory.AbstractContainerMenu>
    • containerTick

      public void containerTick()
      Overrides:
      containerTick in class net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<T extends net.minecraft.world.inventory.AbstractContainerMenu>
    • mouseDragged

      public boolean mouseDragged(double mouseX, double mouseY, int button, 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<T extends net.minecraft.world.inventory.AbstractContainerMenu>