Class BedrockCartographyScreen

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.CartographyTableMenu>
com.viaversion.viafabricplus.bedrock.screen.BedrockCartographyScreen
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<net.minecraft.world.inventory.CartographyTableMenu>

public final class BedrockCartographyScreen extends net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<net.minecraft.world.inventory.CartographyTableMenu>
Native layout over the real Java menu, with all recipes and results supplied by ViaBedrock.
  • 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
  • Constructor Summary

    Constructors
    Constructor
    Description
    BedrockCartographyScreen(net.minecraft.world.inventory.CartographyTableMenu menu, net.minecraft.world.entity.player.Inventory inventory, net.minecraft.network.chat.Component title, net.raphimc.viabedrock.api.model.CartographyState state)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accept(net.raphimc.viabedrock.api.model.CartographyState state)
     
    protected void
     
    void
    extractBackground(net.minecraft.client.gui.GuiGraphicsExtractor graphics, int mouseX, int mouseY, float delta)
     
    protected void
    extractLabels(net.minecraft.client.gui.GuiGraphicsExtractor graphics, int mouseX, int mouseY)
     
    protected void
     
    boolean
    keyPressed(net.minecraft.client.input.KeyEvent event)
     
    void
     
    protected void
    slotClicked(net.minecraft.world.inventory.Slot slot, int id, int button, net.minecraft.world.inventory.ContainerInput action)
     

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

    addItemSlotMouseAction, checkHotbarKeyPressed, extractCarriedItem, extractContents, extractRenderState, extractSlot, extractSlots, extractTooltip, getMenu, getTooltipFromContainerItem, handleSlotStateChanged, hasClickedOutside, isHovering, isInGameUi, isPauseScreen, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, onClose, 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, repositionElements, resize, scheduleNarration, setInitialFocus, 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

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

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

    capturesInput, mouseMoved, shouldTakeFocusAfterInteraction

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

    getTabOrderGroup
  • Constructor Details

    • BedrockCartographyScreen

      public BedrockCartographyScreen(net.minecraft.world.inventory.CartographyTableMenu menu, net.minecraft.world.entity.player.Inventory inventory, net.minecraft.network.chat.Component title, net.raphimc.viabedrock.api.model.CartographyState state)
  • Method Details

    • init

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

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

      public void accept(net.raphimc.viabedrock.api.model.CartographyState state)
    • 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
    • extractLabels

      protected void extractLabels(net.minecraft.client.gui.GuiGraphicsExtractor graphics, int mouseX, int mouseY)
      Overrides:
      extractLabels in class net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<net.minecraft.world.inventory.CartographyTableMenu>
    • 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.CartographyTableMenu>
    • slotClicked

      protected void slotClicked(net.minecraft.world.inventory.Slot slot, int id, int button, net.minecraft.world.inventory.ContainerInput action)
      Overrides:
      slotClicked in class net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<net.minecraft.world.inventory.CartographyTableMenu>
    • removed

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