Class RegistryListEntry<T>
java.lang.Object
net.minecraft.client.gui.components.ContainerObjectSelectionList.Entry<AbstractConfigEntry>
johnsmith.configoverhauled.api.client.gui.entry.AbstractConfigEntry
johnsmith.configoverhauled.impl.client.gui.entry.OptionEntry<List<T>, net.minecraft.client.gui.components.Button>
johnsmith.configoverhauled.impl.client.gui.entry.AbstractRegistryEntry<T,List<T>>
johnsmith.configoverhauled.impl.client.gui.entry.registry.RegistryListEntry<T>
- All Implemented Interfaces:
ConfigEntry, net.minecraft.client.gui.components.events.ContainerEventHandler, net.minecraft.client.gui.components.events.GuiEventListener, net.minecraft.client.gui.components.TabOrderedElement, net.minecraft.client.gui.layouts.LayoutElement
- Direct Known Subclasses:
BlockListEntry, ItemListEntry
-
Field Summary
Fields inherited from class AbstractRegistryEntry
iconProvider, nameProvider, registryFields inherited from class OptionEntry
isLocked, labelComponent, minecraft, onValueChanged, parentScreen, property, resetButton, tooltip, widget -
Constructor Summary
ConstructorsConstructorDescriptionRegistryListEntry(Property<List<T>> property, ConfigScreen parentScreen, net.minecraft.client.Minecraft minecraft, Runnable onValueChanged, net.minecraft.core.Registry<T> registry, Function<T, RenderableIcon> iconProvider, Function<T, net.minecraft.network.chat.Component> nameProvider) -
Method Summary
Modifier and TypeMethodDescriptionprotected net.minecraft.network.chat.Componentprotected voidprotected voidMethods inherited from class AbstractRegistryEntry
applySelection, createWidget, extractContentMethods inherited from class OptionEntry
canReset, children, isDefault, isModified, matchesSearch, narratables, resetToDefault, setValue, updateResetButtonMethods inherited from class net.minecraft.client.gui.components.ContainerObjectSelectionList.Entry
focusPathAtIndex, getFocused, isDragging, mouseClicked, nextFocusPath, 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, keyPressed, keyReleased, mouseDragged, mouseReleased, mouseScrolled, preeditUpdated, setFocusedMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
getRectangle, isMouseOver, mouseMoved, shouldTakeFocusAfterInteractionMethods inherited from interface net.minecraft.client.gui.layouts.LayoutElement
setPositionMethods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Constructor Details
-
RegistryListEntry
-
-
Method Details
-
openSelectionScreen
protected void openSelectionScreen()- Specified by:
openSelectionScreenin classAbstractRegistryEntry<T,List<T>>
-
updateWidgetValue
protected void updateWidgetValue()- Specified by:
updateWidgetValuein classOptionEntry<List<T>, net.minecraft.client.gui.components.Button>
-
getDefaultValueTooltip
protected net.minecraft.network.chat.Component getDefaultValueTooltip()- Overrides:
getDefaultValueTooltipin classOptionEntry<List<T>, net.minecraft.client.gui.components.Button>
-