| java.lang.Object | |
| ↳ | net.gtaun.shoebill.resource.Resource |
Known Direct Subclasses
|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| File |
getDataDir()
Gets the Datadir.
| ||||||||||
| ResourceDescription |
getDescription()
Gets the ResourceDescription of the Resource
| ||||||||||
| EventManager |
getEventManager()
Gets the event Manager.
| ||||||||||
| Logger |
getLogger()
Gets the Logger
| ||||||||||
| Shoebill |
getShoebill()
Gets the active Shoebill instance from the Resource.
| ||||||||||
| boolean |
isEnabled()
Checks if the Resource is enabled.
| ||||||||||
| void | onDisable(Runnable runnable) | ||||||||||
| <T extends Service> void |
registerService(Class<T> type, T service)
Registers a Service
| ||||||||||
| <T extends Service> void |
unregisterService(Class<T> type)
Unregisters a Service by its class
| ||||||||||
| Protected Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| void |
disable()
Gets called when the Resource is getting unloaded.
| ||||||||||
| void |
enable()
Gets called when the Resource is getting enabled.
| ||||||||||
| abstract void |
onDisable()
Gets called when the Resource is getting unloaded.
| ||||||||||
| abstract void |
onEnable()
Gets called when the Resource is getting enabled.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Gets the ResourceDescription of the Resource
Gets the event Manager.
Gets the Logger
Gets the active Shoebill instance from the Resource.
Checks if the Resource is enabled.
Registers a Service
| type | Class instance. |
|---|---|
| service | The Service |
Unregisters a Service by its class
| type | The Class instance |
|---|
Gets called when the Resource is getting unloaded.
| Throwable |
|---|
Gets called when the Resource is getting enabled.
| Throwable |
|---|