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

    Constructors
    Constructor
    Description
    BindSetting(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 Type
    Method
    Description
    boolean
    deserializeValue(com.google.gson.JsonElement json)
     
     
    onChange(Consumer<org.rusherhack.core.bind.key.IKey> consumer)
     
    org.rusherhack.core.bind.key.IKey
    parseValue(String string, boolean set)
     
    com.google.gson.JsonElement
     
     
     

    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

      public BindSetting(String name, org.rusherhack.core.bind.key.IKey value)
    • BindSetting

      public BindSetting(String name, String description, org.rusherhack.core.bind.key.IKey value)
  • Method Details

    • parseValue

      public org.rusherhack.core.bind.key.IKey parseValue(String string, boolean set)
      Specified by:
      parseValue in class org.rusherhack.core.setting.Setting<org.rusherhack.core.bind.key.IKey>
    • getDisplayValue

      public String getDisplayValue()
      Specified by:
      getDisplayValue in class org.rusherhack.core.setting.Setting<org.rusherhack.core.bind.key.IKey>
    • deserializeValue

      public boolean deserializeValue(com.google.gson.JsonElement json)
      Specified by:
      deserializeValue in class org.rusherhack.core.setting.Setting<org.rusherhack.core.bind.key.IKey>
    • serializeValue

      public com.google.gson.JsonElement serializeValue()
      Specified by:
      serializeValue in class org.rusherhack.core.setting.Setting<org.rusherhack.core.bind.key.IKey>
    • setVisibility

      public BindSetting setVisibility(BooleanSupplier tester)
      Overrides:
      setVisibility in class org.rusherhack.core.setting.Setting<org.rusherhack.core.bind.key.IKey>
    • setChangeAction

      public BindSetting setChangeAction(Runnable run)
      Overrides:
      setChangeAction in class org.rusherhack.core.setting.Setting<org.rusherhack.core.bind.key.IKey>
    • onChange

      public BindSetting onChange(Consumer<org.rusherhack.core.bind.key.IKey> consumer)
      Overrides:
      onChange in class org.rusherhack.core.setting.Setting<org.rusherhack.core.bind.key.IKey>