public class ValueEntry<T> extends ConfigScreenList.LabeledEntry
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
editable |
protected BoxWidget |
resetButton |
protected static int |
resetWidth |
protected net.minecraftforge.common.ForgeConfigSpec.ValueSpec |
spec |
protected net.minecraftforge.common.ForgeConfigSpec.ConfigValue<T> |
value |
differenceAnimation, highlightAnimation, label, labelTooltip, labelWidthMult, unitannotations, listeners, path| Constructor and Description |
|---|
ValueEntry(java.lang.String label,
net.minecraftforge.common.ForgeConfigSpec.ConfigValue<T> value,
net.minecraftforge.common.ForgeConfigSpec.ValueSpec spec) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
bumpCog() |
protected void |
bumpCog(float force) |
protected int |
getLabelWidth(int totalWidth) |
T |
getValue() |
protected boolean |
isCurrentValueDefault() |
void |
onReset() |
void |
onValueChange() |
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 |
setValue(T value) |
void |
tick() |
getLabelTooltipcharTyped, getGuiListeners, isCurrentValueChanged, keyPressed, mouseClickedchangeFocusisMouseOverprotected static final int resetWidth
protected net.minecraftforge.common.ForgeConfigSpec.ConfigValue<T> value
protected net.minecraftforge.common.ForgeConfigSpec.ValueSpec spec
protected BoxWidget resetButton
protected boolean editable
public ValueEntry(java.lang.String label,
net.minecraftforge.common.ForgeConfigSpec.ConfigValue<T> value,
net.minecraftforge.common.ForgeConfigSpec.ValueSpec spec)
protected void setEditable(boolean b)
setEditable in class ConfigScreenList.Entrypublic void tick()
tick in class ConfigScreenList.LabeledEntrypublic 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 ConfigScreenList.LabeledEntryprotected int getLabelWidth(int totalWidth)
getLabelWidth in class ConfigScreenList.LabeledEntrypublic void setValue(@Nonnull
T value)
@Nonnull public T getValue()
protected boolean isCurrentValueDefault()
public void onReset()
public void onValueChange()
public void onValueChange(T newValue)
protected void bumpCog()
protected void bumpCog(float force)