Package net.ess3.api
Class PluginKey
java.lang.Object
net.ess3.api.PluginKey
A namespaced key that uses plugins as namespaces.
-
Method Details
-
random
Create a randomly-generated plugin key under the given plugin's namespace.Note: Plugins should prefer to create keys with predictable names - see
fromKey(Plugin, String)
.- Parameters:
plugin
- The plugin whose namespace to use- Returns:
- A random key under the given plugin's namespace
-
fromKey
Create a plugin key under the given plugin's namespace with the given name.- Parameters:
plugin
- The plugin whose namespace to usekey
- The name of the key to create- Returns:
- The key under the given plugin's namespace.
-
getPlugin
-
getKey
-
hashCode
public int hashCode() -
toString
-
equals
-