public class SubPluginInfo extends java.lang.Object implements ExtraDataHandler
SubPlugin
Constructor and Description |
---|
SubPluginInfo(ExHost host,
java.lang.Object plugin,
java.lang.String name,
Version version,
java.util.List<java.lang.String> authors,
java.lang.String description,
java.net.URL website,
java.util.List<java.lang.String> loadBefore,
java.util.List<java.lang.String> dependencies,
java.util.List<java.lang.String> softDependencies)
Create a SubPlugin Description
|
Modifier and Type | Method and Description |
---|---|
void |
addExtra(java.lang.String handle,
java.lang.Object value)
Add an extra value to this Server
|
java.lang.Object |
get()
Get Plugin Object
|
java.util.List<java.lang.String> |
getAuthors()
Get Authors List
|
java.io.File |
getDataFolder()
Gets this Plugin's data folder
|
java.util.List<java.lang.String> |
getDependancies()
Gets the Dependencies List
|
java.lang.String |
getDescription()
Get Plugin Description
|
YAMLSection |
getExtra()
Get the extra value section
|
YAMLValue |
getExtra(java.lang.String handle)
Get an extra value
|
java.util.List<java.lang.String> |
getLoadBefore()
Gets the Load Before Plugins List
|
Logger |
getLogger()
Gets the default Logger for this Plugin
|
java.lang.String |
getName()
Get Plugin's Name
|
java.util.List<java.lang.String> |
getSoftDependancies()
Gets the Soft Dependencies List
|
Version |
getVersion()
Get Plugin's Version
|
java.net.URL |
getWebsite()
Get Authors' Website
|
boolean |
hasExtra(java.lang.String handle)
Determine if an extra value exists
|
boolean |
isEnabled()
Sets the Plugin's Enabled Status
|
void |
removeExtra(java.lang.String handle)
Remove an extra value from this Server
|
void |
setEnabled(boolean value)
Sets if the Plugin is Enabled
|
void |
setLogger(Logger value)
Replace this Plugin's Logger with a custom one
|
public SubPluginInfo(ExHost host, java.lang.Object plugin, java.lang.String name, Version version, java.util.List<java.lang.String> authors, java.lang.String description, java.net.URL website, java.util.List<java.lang.String> loadBefore, java.util.List<java.lang.String> dependencies, java.util.List<java.lang.String> softDependencies)
host
- SubServers.Hostplugin
- Pluginname
- Plugin Nameversion
- Plugin Versionauthors
- Authors Listdescription
- Plugin Descriptionwebsite
- Authors' WebsiteloadBefore
- Load Before Plugins Listdependencies
- Dependencies ListsoftDependencies
- Soft Dependencies Listpublic java.lang.Object get()
public java.lang.String getName()
public Version getVersion()
public java.util.List<java.lang.String> getAuthors()
public java.lang.String getDescription()
public java.net.URL getWebsite()
public java.util.List<java.lang.String> getLoadBefore()
public java.util.List<java.lang.String> getDependancies()
public java.util.List<java.lang.String> getSoftDependancies()
public boolean isEnabled()
public void setEnabled(boolean value)
value
- Valuepublic void setLogger(Logger value)
value
- Valuepublic Logger getLogger()
public java.io.File getDataFolder()
public void addExtra(java.lang.String handle, java.lang.Object value)
ExtraDataHandler
addExtra
in interface ExtraDataHandler
handle
- Handlevalue
- Valuepublic boolean hasExtra(java.lang.String handle)
ExtraDataHandler
hasExtra
in interface ExtraDataHandler
handle
- Handlepublic YAMLValue getExtra(java.lang.String handle)
ExtraDataHandler
getExtra
in interface ExtraDataHandler
handle
- Handlepublic YAMLSection getExtra()
ExtraDataHandler
getExtra
in interface ExtraDataHandler
public void removeExtra(java.lang.String handle)
ExtraDataHandler
removeExtra
in interface ExtraDataHandler
handle
- Handle