Class UnionInventoryScreen

java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<UnionMenu>
net.minecraft.client.gui.screens.inventory.AbstractRecipeBookScreen<UnionMenu>
com.stereowalker.unionlib.client.gui.screens.inventory.UnionInventoryScreen
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<UnionMenu>, net.minecraft.client.gui.screens.recipebook.RecipeUpdateListener

public class UnionInventoryScreen extends net.minecraft.client.gui.screens.inventory.AbstractRecipeBookScreen<UnionMenu>
  • 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 net.minecraft.client.gui.screens.inventory.AbstractContainerScreen

    BACKGROUND_TEXTURE_HEIGHT, BACKGROUND_TEXTURE_WIDTH, DEFAULT_IMAGE_HEIGHT, DEFAULT_IMAGE_WIDTH, hoveredSlot, imageHeight, imageWidth, INVENTORY_LOCATION, inventoryLabelX, inventoryLabelY, isQuickCrafting, leftPos, menu, playerInventoryTitle, quickCraftSlots, titleLabelX, titleLabelY, topPos

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

    FADE_IN_TIME, font, FOOTER_SEPARATOR, HEADER_SEPARATOR, height, INWORLD_FOOTER_SEPARATOR, INWORLD_HEADER_SEPARATOR, MENU_BACKGROUND, minecraft, narratorButton, renderables, screenExecutor, title, width
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    void
     
    void
    extractBackground(net.minecraft.client.gui.GuiGraphicsExtractor graphics, int mouseX, int mouseY, float a)
     
    static void
    extractEntityInInventoryFollowsMouse(net.minecraft.client.gui.GuiGraphicsExtractor graphics, int x0, int y0, int x1, int y1, int size, float offsetY, float mouseX, float mouseY, net.minecraft.world.entity.LivingEntity entity)
     
    protected void
    extractLabels(net.minecraft.client.gui.GuiGraphicsExtractor graphics, int xm, int ym)
     
    void
    extractRenderState(net.minecraft.client.gui.GuiGraphicsExtractor graphics, int mouseX, int mouseY, float a)
     
    protected net.minecraft.client.gui.navigation.ScreenPosition
     
    protected void
     
    protected boolean
     
    boolean
    keyPressed(net.minecraft.client.input.KeyEvent keyEvent)
     
    boolean
    mouseReleased(net.minecraft.client.input.MouseButtonEvent event)
     
    protected void
     
    boolean
     

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

    charTyped, extractSlots, fillGhostRecipe, hasClickedOutside, isHovering, mouseClicked, mouseDragged, recipesUpdated, slotClicked

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

    addItemSlotMouseAction, checkHotbarKeyPressed, extractCarriedItem, extractContents, extractSlot, extractTooltip, getGuiLeft, getGuiTop, getMenu, getSlotUnderMouse, getTooltipFromContainerItem, getXSize, getYSize, handleSlotStateChanged, isInGameUi, isPauseScreen, mouseScrolled, onClose, onMouseClickAction, removed, tick

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

    added, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, canInterruptWithAnotherScreen, changeFocus, children, clearFocus, clearWidgets, clickCommandAction, clickUrlAction, defaultHandleClickEvent, defaultHandleGameClickEvent, extractBlurredBackground, extractMenuBackground, extractMenuBackground, extractMenuBackgroundTexture, extractPanorama, extractRenderStateWithTooltipAndSubtitles, extractTransparentBackground, fadeWidgets, fillCrashDetails, findNarratableWidget, getBackgroundMusic, getFont, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleDelayedNarration, init, insertText, isAllowedInPortal, isMouseOver, isValidCharacterForName, onFilesDrop, rebuildWidgets, removeWidget, repositionElements, resize, setInitialFocus, setInitialFocus, shouldCloseOnEsc, shouldNarrateNavigation, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, updateNarratorStatus

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

    getFocused, isDragging, setDragging, setFocused

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

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

    getBorderForArrowNavigation, getChildAt, getCurrentFocusPath, isFocused, keyReleased, nextFocusPath, preeditUpdated, setFocused

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

    mouseMoved, shouldTakeFocusAfterInteraction

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

    getTabOrderGroup
  • Constructor Details

    • UnionInventoryScreen

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

    • containerTick

      public void containerTick()
      Overrides:
      containerTick in class net.minecraft.client.gui.screens.inventory.AbstractRecipeBookScreen<UnionMenu>
    • init

      protected void init()
      Overrides:
      init in class net.minecraft.client.gui.screens.inventory.AbstractRecipeBookScreen<UnionMenu>
    • getRecipeBookButtonPosition

      protected net.minecraft.client.gui.navigation.ScreenPosition getRecipeBookButtonPosition()
      Specified by:
      getRecipeBookButtonPosition in class net.minecraft.client.gui.screens.inventory.AbstractRecipeBookScreen<UnionMenu>
    • onRecipeBookButtonClick

      protected void onRecipeBookButtonClick()
      Overrides:
      onRecipeBookButtonClick in class net.minecraft.client.gui.screens.inventory.AbstractRecipeBookScreen<UnionMenu>
    • extractLabels

      protected void extractLabels(net.minecraft.client.gui.GuiGraphicsExtractor graphics, int xm, int ym)
      Overrides:
      extractLabels in class net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<UnionMenu>
    • extractRenderState

      public void extractRenderState(net.minecraft.client.gui.GuiGraphicsExtractor graphics, int mouseX, int mouseY, float a)
      Specified by:
      extractRenderState in interface net.minecraft.client.gui.components.Renderable
      Overrides:
      extractRenderState in class net.minecraft.client.gui.screens.inventory.AbstractRecipeBookScreen<UnionMenu>
    • showsActiveEffects

      public boolean showsActiveEffects()
      Overrides:
      showsActiveEffects in class net.minecraft.client.gui.screens.Screen
    • isBiggerResultSlot

      protected boolean isBiggerResultSlot()
      Overrides:
      isBiggerResultSlot in class net.minecraft.client.gui.screens.inventory.AbstractRecipeBookScreen<UnionMenu>
    • extractBackground

      public void extractBackground(net.minecraft.client.gui.GuiGraphicsExtractor graphics, int mouseX, int mouseY, float a)
      Overrides:
      extractBackground in class net.minecraft.client.gui.screens.Screen
    • extractEntityInInventoryFollowsMouse

      public static void extractEntityInInventoryFollowsMouse(net.minecraft.client.gui.GuiGraphicsExtractor graphics, int x0, int y0, int x1, int y1, int size, float offsetY, float mouseX, float mouseY, net.minecraft.world.entity.LivingEntity entity)
    • mouseReleased

      public boolean mouseReleased(net.minecraft.client.input.MouseButtonEvent event)
      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<UnionMenu>
    • keyPressed

      public boolean keyPressed(net.minecraft.client.input.KeyEvent keyEvent)
      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.AbstractRecipeBookScreen<UnionMenu>