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, net.minecraft.client.gui.layouts.LayoutElement
- Direct Known Subclasses:
RegistryEntry, RegistryListEntry
public abstract class AbstractRegistryEntry<T,V>
extends OptionEntry<V, net.minecraft.client.gui.components.Button>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Function<T, RenderableIcon> protected final net.minecraft.core.Registry<T> Fields inherited from class OptionEntry
isLocked, labelComponent, minecraft, onValueChanged, parentScreen, property, resetButton, tooltip, widget -
Constructor Summary
ConstructorsConstructorDescriptionAbstractRegistryEntry(Property<V> 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 voidapplySelection(V newValue) protected net.minecraft.client.gui.components.ButtonvoidextractContent(@NotNull net.minecraft.client.gui.GuiGraphicsExtractor guiGraphics, int mouseX, int mouseY, boolean isHovering, float partialTick) protected abstract voidMethods inherited from class OptionEntry
canReset, children, getDefaultValueTooltip, isDefault, isModified, matchesSearch, narratables, resetToDefault, setValue, updateResetButton, updateWidgetValueMethods 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
-
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, RenderableIcon> iconProvider, Function<T, net.minecraft.network.chat.Component> nameProvider)
-
-
Method Details
-
extractContent
public void extractContent(@NotNull @NotNull net.minecraft.client.gui.GuiGraphicsExtractor guiGraphics, int mouseX, int mouseY, boolean isHovering, float partialTick) - Overrides:
extractContentin classOptionEntry<V, net.minecraft.client.gui.components.Button>
-
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()
-