Class BindSetting
java.lang.Object
org.rusherhack.core.setting.Setting<org.rusherhack.core.bind.key.IKey>
org.rusherhack.client.api.setting.BindSetting
- All Implemented Interfaces:
org.rusherhack.core.feature.IFeature
,org.rusherhack.core.interfaces.IHideable
,org.rusherhack.core.interfaces.INamed
,org.rusherhack.core.serialize.ISerializable<com.google.gson.JsonElement>
,org.rusherhack.core.serialize.JsonSerializable
public class BindSetting
extends org.rusherhack.core.setting.Setting<org.rusherhack.core.bind.key.IKey>
-
Constructor Summary
ConstructorDescriptionBindSetting
(String name, String description, org.rusherhack.core.bind.key.IKey value) BindSetting
(String name, org.rusherhack.core.bind.key.IKey value) -
Method Summary
Modifier and TypeMethodDescriptionboolean
deserializeValue
(com.google.gson.JsonElement json) org.rusherhack.core.bind.key.IKey
parseValue
(String string, boolean set) com.google.gson.JsonElement
setChangeAction
(Runnable run) setVisibility
(BooleanSupplier tester) Methods inherited from class org.rusherhack.core.setting.Setting
addSubSettings, deserialize, getAllSubSettings, getConsumer, getDefaultValue, getDescription, getDisplayName, getFullName, getName, getParent, getSubSetting, getSubSettings, getValue, isHidden, isHiddenByDefault, reset, reset, serialize, setDefaultValue, setDescription, setHidden, setShouldSerialize, setValue, setValueObj, shouldSerialize
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.rusherhack.core.interfaces.INamed
getAliases
Methods inherited from interface org.rusherhack.core.serialize.ISerializable
shouldAutoSave
-
Constructor Details
-
BindSetting
-
BindSetting
-
-
Method Details
-
parseValue
- Specified by:
parseValue
in classorg.rusherhack.core.setting.Setting<org.rusherhack.core.bind.key.IKey>
-
getDisplayValue
- Specified by:
getDisplayValue
in classorg.rusherhack.core.setting.Setting<org.rusherhack.core.bind.key.IKey>
-
deserializeValue
public boolean deserializeValue(com.google.gson.JsonElement json) - Specified by:
deserializeValue
in classorg.rusherhack.core.setting.Setting<org.rusherhack.core.bind.key.IKey>
-
serializeValue
public com.google.gson.JsonElement serializeValue()- Specified by:
serializeValue
in classorg.rusherhack.core.setting.Setting<org.rusherhack.core.bind.key.IKey>
-
setVisibility
- Overrides:
setVisibility
in classorg.rusherhack.core.setting.Setting<org.rusherhack.core.bind.key.IKey>
-
setChangeAction
- Overrides:
setChangeAction
in classorg.rusherhack.core.setting.Setting<org.rusherhack.core.bind.key.IKey>
-
onChange
- Overrides:
onChange
in classorg.rusherhack.core.setting.Setting<org.rusherhack.core.bind.key.IKey>
-