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.NarratableSearchResult

    Nested 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

    Constructors
    Constructor
    Description
    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 Summary

    Modifier and Type
    Method
    Description
    void
    extractRenderState(net.minecraft.client.gui.GuiGraphicsExtractor graphics, int mouseX, int mouseY, float partialTick)
     
    boolean
    keyPressed(net.minecraft.client.input.KeyEvent event)
     
    boolean
    mouseClicked(net.minecraft.client.input.MouseButtonEvent event, boolean doubleClick)
     

    Methods 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, updateNarratorStatus

    Methods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler

    getFocused, isDragging, setDragging, setFocused

    Methods inherited from class Object

    equals, 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, mouseDragged, mouseReleased, mouseScrolled, nextFocusPath, preeditUpdated, setFocused

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

    mouseMoved, shouldTakeFocusAfterInteraction

    Methods 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:
      extractRenderState in interface net.minecraft.client.gui.components.Renderable
      Overrides:
      extractRenderState in class net.minecraft.client.gui.screens.Screen
    • 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.Screen
    • mouseClicked

      public boolean mouseClicked(net.minecraft.client.input.MouseButtonEvent event, boolean doubleClick)