Class SettingBind

java.lang.Object
dev.boze.api.setting.SettingBase<Bind>
dev.boze.api.setting.SettingBind
All Implemented Interfaces:
Serializable<Bind>, Bind

public class SettingBind extends SettingBase<Bind> implements Bind
  • Constructor Details

  • Method Details

    • getValue

      public Bind getValue()
      Specified by:
      getValue in class SettingBase<Bind>
    • setValue

      public Bind setValue(Bind newValue)
      Specified by:
      setValue in class SettingBase<Bind>
    • reset

      public Bind reset()
      Specified by:
      reset in class SettingBase<Bind>
    • getBind

      public int getBind()
      Specified by:
      getBind in interface Bind
      Returns:
      GLFW value of the bind
    • isButton

      public boolean isButton()
      Specified by:
      isButton in interface Bind
      Returns:
      true if bind is a mouse button
    • setBind

      public void setBind(Bind bind)
    • setBind

      public void setBind(int bind, boolean isButton)
    • toJson

      public com.google.gson.JsonObject toJson()
      Specified by:
      toJson in interface Serializable<Bind>
      Returns:
      The object as a JsonObject
    • fromJson

      public SettingBind fromJson(com.google.gson.JsonObject object)
      Specified by:
      fromJson in interface Serializable<Bind>
      Parameters:
      object - The JsonObject to deserialize
      Returns:
      The deserialized object