Package dev.boze.api.addon
Class Addon
java.lang.Object
dev.boze.api.addon.Addon
- All Implemented Interfaces:
Serializable<Addon>
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal String
final AddonDispatcher
final String
final ArrayList
<AddonModule> final String
final String
-
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
id
-
name
-
description
-
version
-
modules
-
dispatcher
-
-
Constructor Details
-
Addon
-
Addon
public Addon(String id, String name, String description, String version, AddonDispatcher dispatcher)
-
-
Method Details
-
initialize
public boolean initialize() -
shutdown
public void shutdown() -
getDir
-
toJson
public com.google.gson.JsonObject toJson()- Specified by:
toJson
in interfaceSerializable<Addon>
- Returns:
- The object as a JsonObject
-
fromJson
- Specified by:
fromJson
in interfaceSerializable<Addon>
- Parameters:
object
- The JsonObject to deserialize- Returns:
- The deserialized object
-