Class CollectionMapSettingScreen<K,V>

java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
meteordevelopment.meteorclient.gui.WidgetScreen
meteordevelopment.meteorclient.gui.WindowScreen
meteordevelopment.meteorclient.gui.screens.settings.base.CollectionMapSettingScreen<K,V>
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
Direct Known Subclasses:
BlockDataSettingScreen

public abstract class CollectionMapSettingScreen<K,V> extends WindowScreen
  • 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
    Modifier and Type
    Field
    Description
    protected final Map<K,V>
     

    Fields inherited from class WindowScreen

    window

    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
    CollectionMapSettingScreen(GuiTheme theme, String title, Setting<?> setting, Map<K,V> map, Iterable<K> registry)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected abstract WWidget
    getDataWidget(K value, @Nullable V data)
     
    protected abstract String[]
     
    protected abstract WWidget
     
    protected boolean
    includeValue(K value)
     
    void
     
    protected void
     
    protected void
    removeValue(K value)
     

    Methods inherited from class WindowScreen

    add, clear

    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, extractRenderState, extractRenderStateWithTooltipAndSubtitles, extractTransparentBackground, fadeWidgets, findNarratableWidget, getBackgroundMusic, getFont, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleDelayedNarration, init, insertText, isAllowedInPortal, isInGameUi, isInputCaptured, isMouseOver, isValidCharacterForName, onFilesDrop, rebuildWidgets, removeWidget, repositionElements, scheduleNarration, setInitialFocus, setInitialFocus, shouldNarrateNavigation, showsActiveEffects, tick, 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

    getBorderForArrowNavigation, getChildAt, getCurrentFocusPath, isFocused, mouseDragged, nextFocusPath, preeditUpdated, setFocused

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

    capturesInput, shouldTakeFocusAfterInteraction

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

    getTabOrderGroup
  • Field Details

    • map

      protected final Map<K,V> map
  • Constructor Details

  • Method Details

    • initWidgets

      public void initWidgets()
      Specified by:
      initWidgets in class WidgetScreen
    • invalidateTable

      protected void invalidateTable()
    • removeValue

      protected void removeValue(K value)
    • includeValue

      protected boolean includeValue(K value)
    • getValueWidget

      protected abstract WWidget getValueWidget(K value)
    • getDataWidget

      protected abstract WWidget getDataWidget(K value, @Nullable V data)
    • getValueNames

      protected abstract String[] getValueNames(K value)