Class ControllerScreen

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.refinedmods.refinedstorage.screen.BaseScreen<ControllerContainerMenu>
com.refinedmods.refinedstorage.screen.ControllerScreen
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<ControllerContainerMenu>

public class ControllerScreen extends BaseScreen<ControllerContainerMenu>
  • 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 com.refinedmods.refinedstorage.screen.BaseScreen

    ICONS_TEXTURE, inventory

    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

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

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

    DOUBLE_CLICK_THRESHOLD_MS
  • Constructor Summary

    Constructors
    Constructor
    Description
    ControllerScreen(ControllerContainerMenu containerMenu, net.minecraft.world.entity.player.Inventory inventory, net.minecraft.network.chat.Component title)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    mouseClicked(double mx, double my, int button)
     
    void
    mouseMoved(double mx, double my)
     
    boolean
    mouseReleased(double mx, double my, int button)
     
    boolean
    mouseScrolled(double x, double y, double z, double delta)
     
    void
    onPostInit(int x, int y)
     
    void
    renderBackground(net.minecraft.client.gui.GuiGraphics graphics, int x, int y, int mouseX, int mouseY)
     
    void
    renderForeground(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY)
     
    void
    tick(int x, int y)
     

    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, keyPressed, mouseDragged, onClose, removed, renderBackground, renderSlot, renderSlotHighlight, renderSlotHighlight, renderTooltip, tick

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

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

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

    getTabOrderGroup
  • Constructor Details

    • ControllerScreen

      public ControllerScreen(ControllerContainerMenu containerMenu, net.minecraft.world.entity.player.Inventory inventory, net.minecraft.network.chat.Component title)
  • Method Details

    • onPostInit

      public void onPostInit(int x, int y)
      Specified by:
      onPostInit in class BaseScreen<ControllerContainerMenu>
    • tick

      public void tick(int x, int y)
      Specified by:
      tick in class BaseScreen<ControllerContainerMenu>
    • renderBackground

      public void renderBackground(net.minecraft.client.gui.GuiGraphics graphics, int x, int y, int mouseX, int mouseY)
      Specified by:
      renderBackground in class BaseScreen<ControllerContainerMenu>
    • mouseMoved

      public void mouseMoved(double mx, double my)
    • mouseClicked

      public boolean mouseClicked(double mx, double my, int button)
      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<ControllerContainerMenu>
    • mouseReleased

      public boolean mouseReleased(double mx, double my, int button)
      Specified by:
      mouseReleased in interface net.minecraft.client.gui.components.events.ContainerEventHandler
      Specified by:
      mouseReleased in interface net.minecraft.client.gui.components.events.GuiEventListener
      Overrides:
      mouseReleased in class net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<ControllerContainerMenu>
    • mouseScrolled

      public boolean mouseScrolled(double x, double y, double z, double delta)
    • renderForeground

      public void renderForeground(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY)
      Specified by:
      renderForeground in class BaseScreen<ControllerContainerMenu>