Class AbstractContainerScreenMixin<T extends net.minecraft.world.inventory.AbstractContainerMenu>
java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
meteordevelopment.meteorclient.mixin.AbstractContainerScreenMixin<T>
- 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<T>
public abstract class AbstractContainerScreenMixin<T extends net.minecraft.world.inventory.AbstractContainerMenu>
extends net.minecraft.client.gui.screens.Screen
implements net.minecraft.client.gui.screens.inventory.MenuAccess<T>
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.gui.screens.Screen
net.minecraft.client.gui.screens.Screen.NarratableSearchResult -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected net.minecraft.world.inventory.Slotprotected intprotected intFields 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 -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract @Nullable net.minecraft.world.inventory.SlotgetHoveredSlot(double x, double y) abstract TgetMenu()abstract voidonClose()protected abstract voidslotClicked(net.minecraft.world.inventory.Slot slot, int slotId, int buttonNum, net.minecraft.world.inventory.ContainerInput containerInput) 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, extractBackground, extractBlurredBackground, extractMenuBackground, extractMenuBackground, extractMenuBackgroundTexture, extractPanorama, extractRenderState, extractRenderStateWithTooltipAndSubtitles, extractTransparentBackground, fadeWidgets, fillCrashDetails, findNarratableWidget, getBackgroundMusic, getFont, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleDelayedNarration, init, init, insertText, isAllowedInPortal, isInGameUi, isMouseOver, isPauseScreen, isValidCharacterForName, keyPressed, onFilesDrop, panoramaShouldSpin, rebuildWidgets, removed, removeWidget, repositionElements, resize, setInitialFocus, setInitialFocus, shouldCloseOnEsc, shouldNarrateNavigation, showsActiveEffects, tick, 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, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, nextFocusPath, preeditUpdated, setFocusedMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
mouseMoved, shouldTakeFocusAfterInteractionMethods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Field Details
-
hoveredSlot
protected net.minecraft.world.inventory.Slot hoveredSlot -
leftPos
protected int leftPos -
topPos
protected int topPos
-
-
Constructor Details
-
AbstractContainerScreenMixin
public AbstractContainerScreenMixin(net.minecraft.network.chat.Component title)
-
-
Method Details
-
getHoveredSlot
@Nullable protected abstract @Nullable net.minecraft.world.inventory.Slot getHoveredSlot(double x, double y) -
getMenu
-
slotClicked
protected abstract void slotClicked(net.minecraft.world.inventory.Slot slot, int slotId, int buttonNum, net.minecraft.world.inventory.ContainerInput containerInput) -
onClose
public abstract void onClose()- Overrides:
onClosein classnet.minecraft.client.gui.screens.Screen
-