public class LXRegistry.Plugin extends Object implements LXSerializable
LXSerializable.Utils
Modifier and Type | Field and Description |
---|---|
Class<? extends LXPlugin> |
clazz |
LXPlugin |
instance |
Modifier and Type | Method and Description |
---|---|
Exception |
getException() |
LXPlugin |
getInstance() |
boolean |
hasError() |
boolean |
hasInstance() |
boolean |
isEnabled() |
void |
load(LX lx,
JsonObject object)
Restores this instance from a JSON object
|
void |
save(LX lx,
JsonObject object)
Serializes this instance into the JSON object
|
LXRegistry.Plugin |
setEnabled(boolean enabled) |
LXRegistry.Plugin |
setException(Exception x) |
public LXPlugin getInstance()
public boolean hasInstance()
public boolean isEnabled()
public LXRegistry.Plugin setEnabled(boolean enabled)
public LXRegistry.Plugin setException(Exception x)
public Exception getException()
public boolean hasError()
public void save(LX lx, JsonObject object)
LXSerializable
save
in interface LXSerializable
lx
- LX instanceobject
- Object to serialize intopublic void load(LX lx, JsonObject object)
LXSerializable
load
in interface LXSerializable
lx
- LX instanceobject
- Object to deserializeLX library by Mark C. Slee. © 2012-2020