Class BedrockNativeContainerScreen

java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<net.minecraft.world.inventory.AbstractContainerMenu>
com.viaversion.viafabricplus.bedrock.screen.container.BedrockNativeContainerScreen
All Implemented Interfaces:
NativeUiScreen, 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<net.minecraft.world.inventory.AbstractContainerMenu>

public final class BedrockNativeContainerScreen extends net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<net.minecraft.world.inventory.AbstractContainerMenu> implements NativeUiScreen
Real menu presentation; generic menus retain vanilla dispatch, scoped count-one controls use the negotiated native request backend.
  • 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, screenExecutor, title, width
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    charTyped(net.minecraft.client.input.CharacterEvent event)
     
    boolean
     
    boolean
     
    protected void
     
    void
    extractBackground(net.minecraft.client.gui.GuiGraphicsExtractor graphics, int mouseX, int mouseY, float delta)
     
    void
    extractCarriedItem(net.minecraft.client.gui.GuiGraphicsExtractor graphics, int mouseX, int mouseY)
     
    void
    extractContents(net.minecraft.client.gui.GuiGraphicsExtractor graphics, int mouseX, int mouseY, float delta)
     
    protected void
    extractTooltip(net.minecraft.client.gui.GuiGraphicsExtractor graphics, int mouseX, int mouseY)
     
    protected boolean
    hasClickedOutside(double x, double y, int left, int top)
     
    protected void
     
    boolean
    keyPressed(net.minecraft.client.input.KeyEvent event)
     
    boolean
    keyReleased(net.minecraft.client.input.KeyEvent event)
     
    boolean
    mouseClicked(net.minecraft.client.input.MouseButtonEvent event, boolean doubleClick)
     
    boolean
    mouseDragged(net.minecraft.client.input.MouseButtonEvent event, double dx, double dy)
     
    void
    mouseMoved(double x, double y)
     
    boolean
    mouseReleased(net.minecraft.client.input.MouseButtonEvent event)
     
    boolean
    mouseScrolled(double x, double y, double horizontal, double vertical)
     
    void
    nativeDecorations(net.minecraft.world.item.ItemStack stack, String count)
    Called only from the scoped vanilla decoration hook, preserving its computed quickcraft stack/count.
    net.minecraft.world.inventory.Slot
    nativeHoveredSlot(double x, double y)
     
    boolean
    nativeIsHovering(net.minecraft.world.inventory.Slot slot, double x, double y)
     
    void
     
    void
     
    protected void
     
    protected void
     
    protected void
    slotClicked(net.minecraft.world.inventory.Slot slot, int index, int button, net.minecraft.world.inventory.ContainerInput input)
     

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

    addItemSlotMouseAction, checkHotbarKeyPressed, extractLabels, extractRenderState, extractSlot, extractSlots, getMenu, getTooltipFromContainerItem, handleSlotStateChanged, isHovering, isInGameUi, isPauseScreen, onMouseClickAction, 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, findNarratableWidget, getBackgroundMusic, getFont, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleDelayedNarration, init, insertText, isAllowedInPortal, isInputCaptured, isMouseOver, isValidCharacterForName, onFilesDrop, rebuildWidgets, removeWidget, resize, scheduleNarration, setInitialFocus, shouldCloseOnEsc, shouldNarrateNavigation, showsActiveEffects, 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, nextFocusPath, preeditUpdated, setFocused

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

    capturesInput, shouldTakeFocusAfterInteraction

    Methods inherited from interface NativeUiScreen

    nativeViewport

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

    getTabOrderGroup
  • Method Details

    • init

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

      protected void setInitialFocus()
      Overrides:
      setInitialFocus in class net.minecraft.client.gui.screens.Screen
    • repositionElements

      protected void repositionElements()
      Overrides:
      repositionElements in class net.minecraft.client.gui.screens.Screen
    • closeOnPlayerHurt

      public boolean closeOnPlayerHurt()
      Specified by:
      closeOnPlayerHurt in interface NativeUiScreen
    • closing

      public boolean closing()
    • onClose

      public void onClose()
      Overrides:
      onClose in class net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<net.minecraft.world.inventory.AbstractContainerMenu>
    • extractCarriedItem

      public void extractCarriedItem(net.minecraft.client.gui.GuiGraphicsExtractor graphics, int mouseX, int mouseY)
      Overrides:
      extractCarriedItem in class net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<net.minecraft.world.inventory.AbstractContainerMenu>
    • charTyped

      public boolean charTyped(net.minecraft.client.input.CharacterEvent event)
      Specified by:
      charTyped in interface net.minecraft.client.gui.components.events.ContainerEventHandler
      Specified by:
      charTyped in interface net.minecraft.client.gui.components.events.GuiEventListener
    • containerTick

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

      public net.minecraft.world.inventory.Slot nativeHoveredSlot(double x, double y)
    • nativeIsHovering

      public boolean nativeIsHovering(net.minecraft.world.inventory.Slot slot, double x, double y)
    • extractContents

      public void extractContents(net.minecraft.client.gui.GuiGraphicsExtractor graphics, int mouseX, int mouseY, float delta)
      Overrides:
      extractContents in class net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<net.minecraft.world.inventory.AbstractContainerMenu>
    • nativeDecorations

      public void nativeDecorations(net.minecraft.world.item.ItemStack stack, String count)
      Called only from the scoped vanilla decoration hook, preserving its computed quickcraft stack/count.
    • extractTooltip

      protected void extractTooltip(net.minecraft.client.gui.GuiGraphicsExtractor graphics, int mouseX, int mouseY)
      Overrides:
      extractTooltip in class net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<net.minecraft.world.inventory.AbstractContainerMenu>
    • slotClicked

      protected void slotClicked(net.minecraft.world.inventory.Slot slot, int index, int button, net.minecraft.world.inventory.ContainerInput input)
      Overrides:
      slotClicked in class net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<net.minecraft.world.inventory.AbstractContainerMenu>
    • extractBackground

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

      protected boolean hasClickedOutside(double x, double y, int left, int top)
      Overrides:
      hasClickedOutside in class net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<net.minecraft.world.inventory.AbstractContainerMenu>
    • mouseScrolled

      public boolean mouseScrolled(double x, double y, double horizontal, double vertical)
      Specified by:
      mouseScrolled in interface net.minecraft.client.gui.components.events.ContainerEventHandler
      Specified by:
      mouseScrolled in interface net.minecraft.client.gui.components.events.GuiEventListener
      Overrides:
      mouseScrolled in class net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<net.minecraft.world.inventory.AbstractContainerMenu>
    • mouseClicked

      public boolean mouseClicked(net.minecraft.client.input.MouseButtonEvent event, boolean doubleClick)
      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<net.minecraft.world.inventory.AbstractContainerMenu>
    • mouseMoved

      public void mouseMoved(double x, double y)
      Specified by:
      mouseMoved in interface net.minecraft.client.gui.components.events.GuiEventListener
    • mouseDragged

      public boolean mouseDragged(net.minecraft.client.input.MouseButtonEvent event, double dx, double dy)
      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<net.minecraft.world.inventory.AbstractContainerMenu>
    • 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<net.minecraft.world.inventory.AbstractContainerMenu>
    • keyPressed

      public boolean keyPressed(net.minecraft.client.input.KeyEvent event)
      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<net.minecraft.world.inventory.AbstractContainerMenu>
    • keyReleased

      public boolean keyReleased(net.minecraft.client.input.KeyEvent event)
      Specified by:
      keyReleased in interface net.minecraft.client.gui.components.events.ContainerEventHandler
      Specified by:
      keyReleased in interface net.minecraft.client.gui.components.events.GuiEventListener
    • removed

      public void removed()
      Overrides:
      removed in class net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<net.minecraft.world.inventory.AbstractContainerMenu>