Class ToggleableModule

java.lang.Object
dev.boze.api.addon.module.ToggleableModule
All Implemented Interfaces:
Serializable<ToggleableModule>

public class ToggleableModule extends Object implements Serializable<ToggleableModule>
  • Field Details

  • Constructor Details

    • ToggleableModule

      protected ToggleableModule(String name, String description)
  • Method Details

    • getName

      public String getName()
    • getTitle

      public String getTitle()
    • setTitle

      public void setTitle(String newTitle)
    • getDescription

      public String getDescription()
    • getState

      public boolean getState()
    • setState

      public boolean setState(boolean newState)
    • onEnable

      protected void onEnable()
    • onDisable

      protected void onDisable()
    • getBind

      public Bind getBind()
    • setBind

      public void setBind(Bind newBind)
    • toJson

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

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