public class HookHandler extends Object
Constructor and Description |
---|
HookHandler(Plan plugin)
Class constructor, hooks to plugins.
|
Modifier and Type | Method and Description |
---|---|
void |
addPluginDataSource(PluginData dataSource)
Adds a new PluginData source to the list.
|
List<PluginData> |
getAdditionalDataSources()
Used to get all PluginData objects currently registered.
|
Map<String,Serializable> |
getAdditionalInspectReplaceRules(UUID uuid)
Used to get the replaceMap for inspect page.
|
public HookHandler(Plan plugin)
plugin
- Current instance of plan.public void addPluginDataSource(PluginData dataSource)
The plugin data will appear on Analysis and/or Inspect pages depending on how the extending object is set up.
Refer to documentation on GitHub for more information.
dataSource
- an object extending the PluginData class.public List<PluginData> getAdditionalDataSources()
public Map<String,Serializable> getAdditionalInspectReplaceRules(UUID uuid)
uuid
- UUID of the player whose page is being inspected.Copyright © 2017. All rights reserved.