Class AbstractRegistryEntry<T,V>
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<V,net.minecraft.client.gui.components.Button>
johnsmith.configoverhauled.impl.client.gui.entry.AbstractRegistryEntry<T,V>
- All Implemented Interfaces:
ConfigEntry,net.minecraft.client.gui.components.events.ContainerEventHandler,net.minecraft.client.gui.components.events.GuiEventListener,net.minecraft.client.gui.components.TabOrderedElement
- Direct Known Subclasses:
RegistryEntry,RegistryListEntry
public abstract class AbstractRegistryEntry<T,V>
extends OptionEntry<V,net.minecraft.client.gui.components.Button>
-
Field Summary
FieldsFields inherited from class johnsmith.configoverhauled.impl.client.gui.entry.OptionEntry
isLocked, labelComponent, minecraft, onValueChanged, parentScreen, property, resetButton, tooltip, widgetFields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS -
Constructor Summary
ConstructorsConstructorDescriptionAbstractRegistryEntry(Property<V> property, ConfigScreen parentScreen, net.minecraft.client.Minecraft minecraft, Runnable onValueChanged, net.minecraft.core.Registry<T> registry, Function<T, net.minecraft.world.item.ItemStack> iconProvider, Function<T, net.minecraft.network.chat.Component> nameProvider) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidapplySelection(V newValue) protected net.minecraft.client.gui.components.Buttonprotected abstract voidMethods inherited from class johnsmith.configoverhauled.impl.client.gui.entry.OptionEntry
canReset, children, getDefaultValueTooltip, isDefault, isModified, matchesSearch, narratables, render, resetToDefault, setValue, updateResetButton, updateWidgetValueMethods inherited from class net.minecraft.client.gui.components.ContainerObjectSelectionList.Entry
focusPathAtIndex, getFocused, isDragging, mouseClicked, nextFocusPath, setDragging, setFocusedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.components.events.ContainerEventHandler
charTyped, getChildAt, getCurrentFocusPath, isFocused, keyPressed, keyReleased, mouseDragged, mouseReleased, mouseScrolled, setFocusedMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
getRectangle, isMouseOver, mouseMovedMethods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Field Details
-
registry
-
iconProvider
-
nameProvider
-
-
Constructor Details
-
AbstractRegistryEntry
public AbstractRegistryEntry(Property<V> property, ConfigScreen parentScreen, net.minecraft.client.Minecraft minecraft, Runnable onValueChanged, net.minecraft.core.Registry<T> registry, Function<T, net.minecraft.world.item.ItemStack> iconProvider, Function<T, net.minecraft.network.chat.Component> nameProvider)
-
-
Method Details
-
createWidget
protected net.minecraft.client.gui.components.Button createWidget()- Specified by:
createWidgetin classOptionEntry<V,net.minecraft.client.gui.components.Button>
-
applySelection
-
openSelectionScreen
protected abstract void openSelectionScreen()
-