public interface

ResourceManager

net.gtaun.shoebill.resource.ResourceManager

Summary

Public Methods
abstract static ResourceManager get()
Get the Resource Manager
abstract Gamemode getGamemode()
Gets the active Gamemode.
abstract <T extends Gamemode> T getGamemode(Class<T> gamemodeClass)
Gets a Gamemode by its class.
abstract <T extends Plugin> T getPlugin(Class<T> pluginClass)
Lets you get a Plugin by its class.
abstract Collection<Plugin> getPlugins()
Gets a Collection of all loaded Plugins.
abstract Plugin loadPlugin(File file)
Lets you load a Plugin by File.
abstract Plugin loadPlugin(String filename)
Lets you load a Plugin by its filename.
abstract void unloadPlugin(Plugin plugin)
Lets you unload a Plugin.

Public Methods

public static abstract ResourceManager get ()

Get the Resource Manager

Returns
  • The Resource Manager

public abstract Gamemode getGamemode ()

Gets the active Gamemode.

Returns
  • The active Gamemode

public abstract T getGamemode (Class<T> gamemodeClass)

Gets a Gamemode by its class.

Parameters
gamemodeClass Class instance of the Gamemode.
Returns
  • The found Gamemode.

public abstract T getPlugin (Class<T> pluginClass)

Lets you get a Plugin by its class.

Parameters
pluginClass Class instance of the Plugin.
Returns
  • The found Plugin.

public abstract Collection<Plugin> getPlugins ()

Gets a Collection of all loaded Plugins.

Returns
  • A Collection of Pluins.

public abstract Plugin loadPlugin (File file)

Lets you load a Plugin by File.

Parameters
file The File to the Plugin
Returns
  • The loaded Plugin

public abstract Plugin loadPlugin (String filename)

Lets you load a Plugin by its filename.

Parameters
filename The Plugin filename
Returns
  • The loaded Plugin

public abstract void unloadPlugin (Plugin plugin)

Lets you unload a Plugin.

Parameters
plugin The Plugin which should be unloaded