Class IntegerConfigEntry
java.lang.Object
net.glasslauncher.mods.api.gcapi.impl.config.ConfigBase
net.glasslauncher.mods.api.gcapi.impl.config.ConfigEntry<Integer>
net.glasslauncher.mods.api.gcapi.impl.config.entry.IntegerConfigEntry
-
Field Summary
Fields inherited from class net.glasslauncher.mods.api.gcapi.impl.config.ConfigEntry
defaultValue, drawableList, maxLength, multiplayerLoaded, parent, valueFields inherited from class net.glasslauncher.mods.api.gcapi.impl.config.ConfigBase
description, id, multiplayerSynced, name, parentField, parentObject -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull List<HasDrawable>voidinit(net.minecraft.client.gui.screen.Screen parent, net.minecraft.client.font.TextRenderer textRenderer) booleanvoidCalled when resetting the entry to the default value.voidsetDrawableValue(Integer value) Methods inherited from class net.glasslauncher.mods.api.gcapi.impl.config.ConfigEntry
getMaxLength, noGCAPIBehaviour, saveToField, vanillaServerBehavior
-
Constructor Details
-
IntegerConfigEntry
-
-
Method Details
-
init
public void init(net.minecraft.client.gui.screen.Screen parent, net.minecraft.client.font.TextRenderer textRenderer) - Overrides:
initin classConfigEntry<Integer>
-
getDrawableValue
- Specified by:
getDrawableValuein classConfigEntry<Integer>
-
setDrawableValue
- Specified by:
setDrawableValuein classConfigEntry<Integer>
-
isValueValid
public boolean isValueValid()- Specified by:
isValueValidin classConfigEntry<Integer>
-
getDrawables
- Specified by:
getDrawablesin classConfigBase
-
reset
Description copied from class:ConfigEntryCalled when resetting the entry to the default value. Yes, I'm making you write this part yourself, I don't know how your custom objects work and how to properly deep clone them.- Specified by:
resetin classConfigEntry<Integer>- Throws:
IllegalAccessException- Reflection can be used inside here without try/catch.
-