Class AbstractContainerSpellPartCustomizationScreen<T>
java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
at.minecraftschurli.mods.arsmagicalegacy.api.client.screen.AbstractSpellPartCustomizationScreen<T>
at.minecraftschurli.mods.arsmagicalegacy.api.client.screen.AbstractContainerSpellPartCustomizationScreen<T>
- Type Parameters:
T- The type of the modified data component.
- All Implemented Interfaces:
SpellPartCustomizationScreen, 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
public abstract class AbstractContainerSpellPartCustomizationScreen<T>
extends AbstractSpellPartCustomizationScreen<T>
A more specialized version of
AbstractSpellPartCustomizationScreen that mimics a container GUI, minus some functionality such as dropping and quick moving.
Items are expected to be copied into slots rather than actually be placed, i.e., this screen is not to be used for storage.
Since this is a client-only screen, mutations to the inventory are not possible, as they would not be persistent anyway.-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.gui.screens.Screen
net.minecraft.client.gui.screens.Screen.NarratableSearchResultNested classes/interfaces inherited from interface SpellPartCustomizationScreen
SpellPartCustomizationScreen.Factory<T,S> -
Field Summary
Fields inherited from class net.minecraft.client.gui.screens.Screen
FOOTER_SEPARATOR, HEADER_SEPARATOR, height, INWORLD_FOOTER_SEPARATOR, INWORLD_HEADER_SEPARATOR, MENU_BACKGROUND, renderables, width -
Constructor Summary
ConstructorsConstructorDescriptionAbstractContainerSpellPartCustomizationScreen(net.minecraft.network.chat.Component title, net.minecraft.core.component.DataComponentType<T> type, Function<net.minecraft.core.component.DataComponentType<T>, @Nullable T> valueGetter, BiConsumer<net.minecraft.core.component.DataComponentType<T>, @Nullable T> valueSetter) -
Method Summary
Modifier and TypeMethodDescriptionvoidextractRenderState(net.minecraft.client.gui.GuiGraphicsExtractor graphics, int mouseX, int mouseY, float partialTick) booleankeyPressed(net.minecraft.client.input.KeyEvent event) booleanmouseClicked(net.minecraft.client.input.MouseButtonEvent event, boolean doubleClick) Methods inherited from class AbstractSpellPartCustomizationScreen
extractBackground, onCloseMethods inherited from class net.minecraft.client.gui.screens.Screen
added, afterKeyboardAction, afterMouseAction, afterMouseMove, canInterruptWithAnotherScreen, children, clearFocus, extractMenuBackgroundTexture, extractRenderStateWithTooltipAndSubtitles, extractTransparentBackground, fillCrashDetails, findNarratableWidget, getBackgroundMusic, getFont, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, handleDelayedNarration, init, isAllowedInPortal, isInGameUi, isMouseOver, isPauseScreen, onFilesDrop, removed, resize, shouldCloseOnEsc, showsActiveEffects, tick, triggerImmediateNarration, updateNarratorStatusMethods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocusedMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.components.events.ContainerEventHandler
charTyped, getBorderForArrowNavigation, getChildAt, getCurrentFocusPath, isFocused, keyReleased, 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
-
Constructor Details
-
AbstractContainerSpellPartCustomizationScreen
public AbstractContainerSpellPartCustomizationScreen(net.minecraft.network.chat.Component title, net.minecraft.core.component.DataComponentType<T> type, Function<net.minecraft.core.component.DataComponentType<T>, @Nullable T> valueGetter, BiConsumer<net.minecraft.core.component.DataComponentType<T>, @Nullable T> valueSetter)
-
-
Method Details
-
extractRenderState
public void extractRenderState(net.minecraft.client.gui.GuiGraphicsExtractor graphics, int mouseX, int mouseY, float partialTick) - Specified by:
extractRenderStatein interfacenet.minecraft.client.gui.components.Renderable- Overrides:
extractRenderStatein classnet.minecraft.client.gui.screens.Screen
-
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.Screen
-
mouseClicked
public boolean mouseClicked(net.minecraft.client.input.MouseButtonEvent event, boolean doubleClick)
-