Class ARGBColorEntry
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<Integer, net.minecraft.client.gui.components.EditBox>
johnsmith.configoverhauled.impl.client.gui.entry.AbstractTextEntry<Integer>
johnsmith.configoverhauled.impl.client.gui.entry.bounded.BoundedEntry<Integer>
johnsmith.configoverhauled.impl.client.gui.entry.bounded.ColorEntry<Property<Integer>>
johnsmith.configoverhauled.impl.client.gui.entry.bounded.ARGBColorEntry
- 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
-
Field Summary
Fields inherited from class OptionEntry
detailButton, isLocked, labelComponent, minecraft, onValueChanged, parentScreen, property, resetButton, tooltip, widget -
Constructor Summary
ConstructorsConstructorDescriptionARGBColorEntry(Property<Integer> property, ConfigScreen parentScreen, net.minecraft.client.Minecraft minecraft, Runnable onValueChanged) -
Method Summary
Modifier and TypeMethodDescriptionprotected net.minecraft.util.FormattedCharSequenceformatColorString(String text, int cursorOffset) protected Stringprotected intprotected intgetPreviewColor(int rawValue) protected booleanhasAlpha()Methods inherited from class ColorEntry
charTyped, children, enforceHexFormatting, extractContent, getBoundsTooltipText, getCurrentValueTooltipText, getDefaultValueTooltip, getMaxLabelWidth, getRegexFilter, hasDetailPopup, isPartialInput, isWithinBounds, keyPressed, narratables, openColorPicker, parse, renderColorPreview, renderNextColorPreviewTriangle, setupEditBox, updateWidgetValueMethods inherited from class BoundedEntry
applyInput, formatValue, getBounds, openDetailPopupMethods inherited from class AbstractTextEntry
applyPopupValue, createWidget, restoreCurrentValueMethods inherited from class OptionEntry
canReset, createDetailButton, determineLockState, getDetailButtonLabel, getDetailButtonTooltip, isDefault, isModified, matchesSearch, 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
getBorderForArrowNavigation, getChildAt, getCurrentFocusPath, isFocused, 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
-
ARGBColorEntry
public ARGBColorEntry(Property<Integer> property, ConfigScreen parentScreen, net.minecraft.client.Minecraft minecraft, Runnable onValueChanged)
-
-
Method Details
-
hasAlpha
protected boolean hasAlpha()- Overrides:
hasAlphain classColorEntry<Property<Integer>>
-
getHexFormatString
- Specified by:
getHexFormatStringin classColorEntry<Property<Integer>>
-
getMaxLength
protected int getMaxLength()- Specified by:
getMaxLengthin classColorEntry<Property<Integer>>
-
getPreviewColor
protected int getPreviewColor(int rawValue) - Specified by:
getPreviewColorin classColorEntry<Property<Integer>>
-
formatColorString
- Specified by:
formatColorStringin classColorEntry<Property<Integer>>
-