Class ValueEntry<T>
java.lang.Object
net.minecraft.client.gui.components.AbstractSelectionList.Entry<E>
net.minecraft.client.gui.components.ObjectSelectionList.Entry<ConfigScreenList.Entry>
com.simibubi.create.foundation.config.ui.ConfigScreenList.Entry
com.simibubi.create.foundation.config.ui.ConfigScreenList.LabeledEntry
com.simibubi.create.foundation.config.ui.entries.ValueEntry<T>
- All Implemented Interfaces:
TickableGuiEventListener,net.minecraft.client.gui.components.events.GuiEventListener,net.minecraft.client.gui.narration.NarrationSupplier
- Direct Known Subclasses:
BooleanEntry,EnumEntry,NumberEntry
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected BoxWidgetprotected static intprotected net.minecraftforge.common.ForgeConfigSpec.ValueSpecprotected net.minecraftforge.common.ForgeConfigSpec.ConfigValue<T>Fields inherited from class com.simibubi.create.foundation.config.ui.ConfigScreenList.LabeledEntry
differenceAnimation, highlightAnimation, label, labelTooltip, labelWidthMult, unitFields inherited from class com.simibubi.create.foundation.config.ui.ConfigScreenList.Entry
annotations, listeners, pathFields inherited from class net.minecraft.client.gui.components.AbstractSelectionList.Entry
list -
Constructor Summary
ConstructorsConstructorDescriptionValueEntry(String label, net.minecraftforge.common.ForgeConfigSpec.ConfigValue<T> value, net.minecraftforge.common.ForgeConfigSpec.ValueSpec spec) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbumpCog()protected voidbumpCog(float force)protected intgetLabelWidth(int totalWidth)getValue()protected booleanvoidonReset()voidvoidonValueChange(T newValue)voidrender(com.mojang.blaze3d.vertex.PoseStack ms, int index, int y, int x, int width, int height, int mouseX, int mouseY, boolean p_230432_9_, float partialTicks)protected voidsetEditable(boolean b)voidvoidtick()Methods inherited from class com.simibubi.create.foundation.config.ui.ConfigScreenList.LabeledEntry
getLabelTooltip, getNarrationMethods inherited from class com.simibubi.create.foundation.config.ui.ConfigScreenList.Entry
charTyped, getGuiListeners, isCurrentValueChanged, keyPressed, mouseClickedMethods inherited from class net.minecraft.client.gui.components.ObjectSelectionList.Entry
changeFocus, updateNarrationMethods inherited from class net.minecraft.client.gui.components.AbstractSelectionList.Entry
isMouseOverMethods 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.GuiEventListener
changeFocus, isMouseOver, keyReleased, mouseDragged, mouseMoved, mouseReleased, mouseScrolled
-
Field Details
-
resetWidth
protected static final int resetWidth- See Also:
- Constant Field Values
-
value
-
spec
protected net.minecraftforge.common.ForgeConfigSpec.ValueSpec spec -
resetButton
-
editable
protected boolean editable
-
-
Constructor Details
-
ValueEntry
-
-
Method Details
-
setEditable
protected void setEditable(boolean b)- Overrides:
setEditablein classConfigScreenList.Entry
-
tick
public void tick()- Specified by:
tickin interfaceTickableGuiEventListener- Overrides:
tickin classConfigScreenList.LabeledEntry
-
render
public void render(com.mojang.blaze3d.vertex.PoseStack ms, int index, int y, int x, int width, int height, int mouseX, int mouseY, boolean p_230432_9_, float partialTicks)- Overrides:
renderin classConfigScreenList.LabeledEntry
-
getLabelWidth
protected int getLabelWidth(int totalWidth)- Overrides:
getLabelWidthin classConfigScreenList.LabeledEntry
-
setValue
-
getValue
-
isCurrentValueDefault
protected boolean isCurrentValueDefault() -
onReset
public void onReset() -
onValueChange
public void onValueChange() -
onValueChange
-
bumpCog
protected void bumpCog() -
bumpCog
protected void bumpCog(float force)
-