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, topPosFields 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
ConstructorsConstructorDescriptionBedrockCartographyScreen(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 TypeMethodDescriptionvoidaccept(net.raphimc.viabedrock.api.model.CartographyState state) protected voidvoidextractBackground(net.minecraft.client.gui.GuiGraphicsExtractor graphics, int mouseX, int mouseY, float delta) protected voidextractLabels(net.minecraft.client.gui.GuiGraphicsExtractor graphics, int mouseX, int mouseY) protected voidinit()booleankeyPressed(net.minecraft.client.input.KeyEvent event) voidremoved()protected voidslotClicked(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, tickMethods 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, updateNarratorStatusMethods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocusedMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.components.events.ContainerEventHandler
charTyped, getBorderForArrowNavigation, getChildAt, getCurrentFocusPath, isFocused, keyReleased, nextFocusPath, preeditUpdated, setFocusedMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
capturesInput, mouseMoved, shouldTakeFocusAfterInteractionMethods 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:
initin classnet.minecraft.client.gui.screens.inventory.AbstractContainerScreen<net.minecraft.world.inventory.CartographyTableMenu>
-
containerTick
protected void containerTick()- Overrides:
containerTickin classnet.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:
extractBackgroundin classnet.minecraft.client.gui.screens.Screen
-
extractLabels
protected void extractLabels(net.minecraft.client.gui.GuiGraphicsExtractor graphics, int mouseX, int mouseY) - Overrides:
extractLabelsin classnet.minecraft.client.gui.screens.inventory.AbstractContainerScreen<net.minecraft.world.inventory.CartographyTableMenu>
-
keyPressed
public boolean keyPressed(net.minecraft.client.input.KeyEvent event) - Specified by:
keyPressedin interfacenet.minecraft.client.gui.components.events.ContainerEventHandler- Specified by:
keyPressedin interfacenet.minecraft.client.gui.components.events.GuiEventListener- Overrides:
keyPressedin classnet.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:
slotClickedin classnet.minecraft.client.gui.screens.inventory.AbstractContainerScreen<net.minecraft.world.inventory.CartographyTableMenu>
-
removed
public void removed()- Overrides:
removedin classnet.minecraft.client.gui.screens.inventory.AbstractContainerScreen<net.minecraft.world.inventory.CartographyTableMenu>
-