|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.bukkit.plugin.PluginDescriptionFile
public final class PluginDescriptionFile
Provides access to a Plugins description file, plugin.yaml
Constructor Summary | |
---|---|
PluginDescriptionFile(InputStream stream)
|
|
PluginDescriptionFile(Reader reader)
Loads a PluginDescriptionFile from the specified reader |
|
PluginDescriptionFile(String pluginName,
String pluginVersion,
String mainClass)
Creates a new PluginDescriptionFile with the given detailed |
Method Summary | |
---|---|
List<String> |
getAuthors()
|
String |
getClassLoaderOf()
|
Map<String,Map<String,Object>> |
getCommands()
|
List<String> |
getDepend()
|
String |
getDescription()
Gets the description of this plugin |
String |
getFullName()
Returns the name of a plugin including the version |
PluginLoadOrder |
getLoad()
|
List<String> |
getLoadBefore()
Gets the list of plugins that should consider this plugin a soft-dependency |
String |
getMain()
Returns the main class for a plugin |
String |
getName()
Returns the name of a plugin |
PermissionDefault |
getPermissionDefault()
|
List<Permission> |
getPermissions()
|
String |
getPrefix()
|
List<String> |
getSoftDepend()
|
String |
getVersion()
Returns the version of a plugin |
String |
getWebsite()
|
boolean |
isDatabaseEnabled()
|
void |
save(Writer writer)
Saves this PluginDescriptionFile to the given writer |
void |
setDatabaseEnabled(boolean database)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PluginDescriptionFile(InputStream stream) throws InvalidDescriptionException
InvalidDescriptionException
public PluginDescriptionFile(Reader reader) throws InvalidDescriptionException
reader
- The reader
InvalidDescriptionException
- If the PluginDescriptionFile is invalidpublic PluginDescriptionFile(String pluginName, String pluginVersion, String mainClass)
pluginName
- Name of this pluginpluginVersion
- Version of this pluginmainClass
- Full location of the main class of this pluginMethod Detail |
---|
public void save(Writer writer)
writer
- Writer to output this file topublic String getName()
public String getVersion()
public String getFullName()
public String getMain()
public Map<String,Map<String,Object>> getCommands()
public List<String> getDepend()
public List<String> getSoftDepend()
public List<String> getLoadBefore()
public PluginLoadOrder getLoad()
public String getDescription()
public List<String> getAuthors()
public String getWebsite()
public boolean isDatabaseEnabled()
public void setDatabaseEnabled(boolean database)
public List<Permission> getPermissions()
public PermissionDefault getPermissionDefault()
public String getClassLoaderOf()
public String getPrefix()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |