Class CollectionMapSettingScreen<K,V>

java.lang.Object
net.minecraft.client.gui.AbstractParentElement
net.minecraft.client.gui.screen.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.Drawable, net.minecraft.client.gui.Element, net.minecraft.client.gui.navigation.Navigable, net.minecraft.client.gui.ParentElement
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.screen.Screen

    net.minecraft.client.gui.screen.Screen.SelectedElementNarrationData
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final Map<K,V>
     

    Fields inherited from class meteordevelopment.meteorclient.gui.WindowScreen

    window

    Fields inherited from class meteordevelopment.meteorclient.gui.WidgetScreen

    animProgress, enterAction, firstInit, locked, lockedAllowClose, parent, taskAfterRender, theme

    Fields inherited from class net.minecraft.client.gui.screen.Screen

    client, executor, field_60460, FOOTER_SEPARATOR_TEXTURE, HEADER_SEPARATOR_TEXTURE, height, INWORLD_FOOTER_SEPARATOR_TEXTURE, INWORLD_HEADER_SEPARATOR_TEXTURE, MENU_BACKGROUND_TEXTURE, narratorToggleButton, textRenderer, 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, 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 meteordevelopment.meteorclient.gui.WindowScreen

    add, clear

    Methods inherited from class net.minecraft.client.gui.screen.Screen

    addCrashReportSection, addDrawable, addDrawableChild, addElementNarrations, addScreenNarrations, addSelectableChild, allowRotatingPanorama, applyBlur, applyKeyPressNarratorDelay, applyMouseMoveNarratorDelay, applyMousePressScrollNarratorDelay, blur, canInterruptOtherScreen, children, clearAndInit, clearChildren, deferSubtitles, findSelectedElementData, getMusic, getNarratedTitle, getNavigationFocus, getTextRenderer, getTitle, getTooltipFromItem, getUsageNarrationText, handleBasicClickEvent, handleClickEvent, handleOpenUri, handleRunCommand, hasUsageText, init, insertText, isMouseOver, isValidCharacterForName, keepOpenThroughPortal, narrateScreenIfNarrationEnabled, onDisplayed, onFilesDropped, refreshNarrator, refreshWidgetPositions, remove, render, renderBackgroundTexture, renderDarkening, renderDarkening, renderInGameBackground, renderPanoramaBackground, renderWithTooltip, setInitialFocus, setInitialFocus, setWidgetAlpha, showsStatusEffects, switchFocus, tick, updateNarrator

    Methods inherited from class net.minecraft.client.gui.AbstractParentElement

    getFocused, isDragging, setDragging, setFocused

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.minecraft.client.gui.Element

    getBorder, isClickable

    Methods inherited from interface net.minecraft.client.gui.navigation.Navigable

    getNavigationOrder

    Methods inherited from interface net.minecraft.client.gui.ParentElement

    getFocusedPath, getNavigationPath, hoveredElement, isFocused, mouseDragged, setFocused
  • 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)