public abstract class NumberEntry<T extends java.lang.Number> extends ValueEntry<T>
| Modifier and Type | Class and Description |
|---|---|
static class |
NumberEntry.DoubleEntry |
static class |
NumberEntry.FloatEntry |
static class |
NumberEntry.IntegerEntry |
| Modifier and Type | Field and Description |
|---|---|
protected int |
maxOffset |
protected TextStencilElement |
maxText |
protected int |
minOffset |
protected TextStencilElement |
minText |
protected net.minecraft.client.gui.widget.TextFieldWidget |
textField |
editable, resetButton, resetWidth, spec, valuedifferenceAnimation, highlightAnimation, label, labelTooltip, labelWidthMult, unitannotations, listeners, path| Constructor and Description |
|---|
NumberEntry(java.lang.String label,
net.minecraftforge.common.ForgeConfigSpec.ConfigValue<T> value,
net.minecraftforge.common.ForgeConfigSpec.ValueSpec spec) |
| Modifier and Type | Method and Description |
|---|---|
static NumberEntry<? extends java.lang.Number> |
create(java.lang.Object type,
java.lang.String label,
net.minecraftforge.common.ForgeConfigSpec.ConfigValue<?> value,
net.minecraftforge.common.ForgeConfigSpec.ValueSpec spec) |
protected java.lang.String |
formatBound(T bound) |
protected abstract java.util.function.Function<java.lang.String,T> |
getParser() |
protected abstract T |
getTypeMax() |
protected abstract T |
getTypeMin() |
void |
onValueChange(T newValue) |
void |
render(com.mojang.blaze3d.matrix.MatrixStack ms,
int index,
int y,
int x,
int width,
int height,
int mouseX,
int mouseY,
boolean p_230432_9_,
float partialTicks) |
protected void |
setEditable(boolean b) |
void |
tick() |
bumpCog, bumpCog, getLabelWidth, getValue, isCurrentValueDefault, onReset, onValueChange, setValuegetLabelTooltipcharTyped, getGuiListeners, isCurrentValueChanged, keyPressed, mouseClickedchangeFocusisMouseOverprotected int minOffset
protected int maxOffset
protected TextStencilElement minText
protected TextStencilElement maxText
protected net.minecraft.client.gui.widget.TextFieldWidget textField
public NumberEntry(java.lang.String label,
net.minecraftforge.common.ForgeConfigSpec.ConfigValue<T> value,
net.minecraftforge.common.ForgeConfigSpec.ValueSpec spec)
@Nullable public static NumberEntry<? extends java.lang.Number> create(java.lang.Object type, java.lang.String label, net.minecraftforge.common.ForgeConfigSpec.ConfigValue<?> value, net.minecraftforge.common.ForgeConfigSpec.ValueSpec spec)
protected java.lang.String formatBound(T bound)
protected abstract T getTypeMin()
protected abstract T getTypeMax()
protected abstract java.util.function.Function<java.lang.String,T> getParser()
protected void setEditable(boolean b)
setEditable in class ValueEntry<T extends java.lang.Number>public void onValueChange(T newValue)
onValueChange in class ValueEntry<T extends java.lang.Number>public void tick()
tick in class ValueEntry<T extends java.lang.Number>public void render(com.mojang.blaze3d.matrix.MatrixStack ms,
int index,
int y,
int x,
int width,
int height,
int mouseX,
int mouseY,
boolean p_230432_9_,
float partialTicks)
render in class ValueEntry<T extends java.lang.Number>