Class AbstractSimiContainerScreen<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>
com.simibubi.create.foundation.gui.menu.AbstractSimiContainerScreen<T>
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<T>
Direct Known Subclasses:
AbstractFilterScreen, BlueprintScreen, FactoryPanelSetItemScreen, LinkedControllerScreen, PackagePortScreen, RedstoneRequesterScreen, ScheduleScreen, SchematicannonScreen, SchematicTableScreen, StockKeeperCategoryScreen, StockKeeperRequestScreen, ToolboxScreen

@ParametersAreNonnullByDefault public abstract class AbstractSimiContainerScreen<T extends net.minecraft.world.inventory.AbstractContainerMenu> extends net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<T>
  • 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
    protected int
     
    protected int
     

    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

    CUBE_MAP, font, FOOTER_SEPARATOR, HEADER_SEPARATOR, height, INWORLD_FOOTER_SEPARATOR, INWORLD_HEADER_SEPARATOR, MENU_BACKGROUND, minecraft, narratorButton, PANORAMA, renderables, screenExecutor, title, width

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

    DOUBLE_CLICK_THRESHOLD_MS
  • Constructor Summary

    Constructors
    Constructor
    Description
    AbstractSimiContainerScreen(T container, net.minecraft.world.entity.player.Inventory inv, net.minecraft.network.chat.Component title)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected <W extends net.minecraft.client.gui.components.events.GuiEventListener & net.minecraft.client.gui.components.Renderable & net.minecraft.client.gui.narration.NarratableEntry>
    void
     
    protected <W extends net.minecraft.client.gui.components.events.GuiEventListener & net.minecraft.client.gui.components.Renderable & net.minecraft.client.gui.narration.NarratableEntry>
    void
    addRenderableWidgets(W... widgets)
     
    protected void
     
    protected void
    debugExtraAreas(net.minecraft.client.gui.GuiGraphics graphics)
    Deprecated.
    protected void
    debugWindowArea(net.minecraft.client.gui.GuiGraphics graphics)
    Deprecated.
    List<net.minecraft.client.renderer.Rect2i>
    Used for moving JEI out of the way of extra things like block renders.
    net.minecraft.client.gui.components.events.GuiEventListener
     
    int
    getLeftOfCentered(int textureWidth)
     
    protected void
     
    boolean
    keyPressed(int pKeyCode, int pScanCode, int pModifiers)
     
    boolean
    mouseClicked(double pMouseX, double pMouseY, int pButton)
     
    protected void
    playUiSound(net.minecraft.sounds.SoundEvent sound, float volume, float pitch)
     
    protected void
    removeWidgets(Collection<? extends net.minecraft.client.gui.components.events.GuiEventListener> widgets)
     
    protected void
    removeWidgets(net.minecraft.client.gui.components.events.GuiEventListener... widgets)
     
    void
    render(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY, float partialTicks)
     
    protected void
    renderForeground(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY, float partialTicks)
     
    protected void
    renderLabels(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY)
     
    void
    renderPlayerInventory(net.minecraft.client.gui.GuiGraphics graphics, int x, int y)
     
    protected void
    setWindowOffset(int xOffset, int yOffset)
    This method must be called before super.init()!
    protected void
    setWindowSize(int width, int height)
    This method must be called before super.init()!

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

    checkHotbarKeyPressed, clearDraggingState, getGuiLeft, getGuiTop, getMenu, getSlotColor, getSlotUnderMouse, getTooltipFromContainerItem, getXSize, getYSize, handleSlotStateChanged, hasClickedOutside, isHovering, isPauseScreen, mouseDragged, mouseReleased, onClose, removed, renderBackground, renderBg, renderSlot, renderSlotContents, renderSlotHighlight, renderSlotHighlight, renderSlotHighlight, renderTooltip, slotClicked, tick

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

    added, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, changeFocus, children, clearFocus, clearTooltipForNextRenderPass, clearWidgets, findNarratableWidget, getBackgroundMusic, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, onFilesDrop, rebuildWidgets, removeWidget, renderBlurredBackground, renderMenuBackground, renderMenuBackground, renderMenuBackgroundTexture, renderPanorama, renderTransparentBackground, renderWithTooltip, repositionElements, resize, setInitialFocus, setInitialFocus, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, shouldCloseOnEsc, shouldNarrateNavigation, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, updateNarratorStatus, wrapScreenError

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

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

    • windowXOffset

      protected int windowXOffset
    • windowYOffset

      protected int windowYOffset
  • Constructor Details

    • AbstractSimiContainerScreen

      public AbstractSimiContainerScreen(T container, net.minecraft.world.entity.player.Inventory inv, net.minecraft.network.chat.Component title)
  • Method Details

    • setWindowSize

      protected void setWindowSize(int width, int height)
      This method must be called before super.init()!
    • setWindowOffset

      protected void setWindowOffset(int xOffset, int yOffset)
      This method must be called before super.init()!
    • init

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

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

      protected <W extends net.minecraft.client.gui.components.events.GuiEventListener & net.minecraft.client.gui.components.Renderable & net.minecraft.client.gui.narration.NarratableEntry> void addRenderableWidgets(W... widgets)
    • addRenderableWidgets

      protected <W extends net.minecraft.client.gui.components.events.GuiEventListener & net.minecraft.client.gui.components.Renderable & net.minecraft.client.gui.narration.NarratableEntry> void addRenderableWidgets(Collection<W> widgets)
    • removeWidgets

      protected void removeWidgets(net.minecraft.client.gui.components.events.GuiEventListener... widgets)
    • removeWidgets

      protected void removeWidgets(Collection<? extends net.minecraft.client.gui.components.events.GuiEventListener> widgets)
    • render

      public void render(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY, float partialTicks)
      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>
    • renderLabels

      protected void renderLabels(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY)
      Overrides:
      renderLabels in class net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<T extends net.minecraft.world.inventory.AbstractContainerMenu>
    • renderForeground

      protected void renderForeground(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY, float partialTicks)
    • getLeftOfCentered

      public int getLeftOfCentered(int textureWidth)
    • renderPlayerInventory

      public void renderPlayerInventory(net.minecraft.client.gui.GuiGraphics graphics, int x, int y)
    • keyPressed

      public boolean keyPressed(int pKeyCode, int pScanCode, int pModifiers)
      Specified by:
      keyPressed in interface net.minecraft.client.gui.components.events.ContainerEventHandler
      Specified by:
      keyPressed in interface net.minecraft.client.gui.components.events.GuiEventListener
      Overrides:
      keyPressed in class net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<T extends net.minecraft.world.inventory.AbstractContainerMenu>
    • mouseClicked

      public boolean mouseClicked(double pMouseX, double pMouseY, int pButton)
      Specified by:
      mouseClicked in interface net.minecraft.client.gui.components.events.ContainerEventHandler
      Specified by:
      mouseClicked in interface net.minecraft.client.gui.components.events.GuiEventListener
      Overrides:
      mouseClicked in class net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<T extends net.minecraft.world.inventory.AbstractContainerMenu>
    • getFocused

      public net.minecraft.client.gui.components.events.GuiEventListener getFocused()
      Specified by:
      getFocused in interface net.minecraft.client.gui.components.events.ContainerEventHandler
      Overrides:
      getFocused in class net.minecraft.client.gui.components.events.AbstractContainerEventHandler
    • getExtraAreas

      public List<net.minecraft.client.renderer.Rect2i> getExtraAreas()
      Used for moving JEI out of the way of extra things like block renders.
      Returns:
      the space that the GUI takes up outside the normal rectangle defined by ContainerScreen.
    • debugWindowArea

      @Deprecated protected void debugWindowArea(net.minecraft.client.gui.GuiGraphics graphics)
      Deprecated.
    • debugExtraAreas

      @Deprecated protected void debugExtraAreas(net.minecraft.client.gui.GuiGraphics graphics)
      Deprecated.
    • playUiSound

      protected void playUiSound(net.minecraft.sounds.SoundEvent sound, float volume, float pitch)