Package io.github.apfelcreme.Pipes
Class Pipes
java.lang.Object
org.bukkit.plugin.PluginBase
org.bukkit.plugin.java.JavaPlugin
io.github.apfelcreme.Pipes.Pipes
- All Implemented Interfaces:
org.bukkit.command.CommandExecutor
,org.bukkit.command.TabCompleter
,org.bukkit.command.TabExecutor
,org.bukkit.plugin.Plugin
public class Pipes
extends org.bukkit.plugin.java.JavaPlugin
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Pipes
returns the plugin instancegetRegisteredRightClick
(org.bukkit.entity.Player player) Get a registered a right click actionstatic co.aikar.timings.lib.MCTiming
Returns a timing object for the given namestatic co.aikar.timings.lib.MCTiming
Returns a timing object for the given name and parentstatic boolean
Returns whether or not BlockInfoStorage is availablevoid
void
onEnable()
void
registerRightClick
(org.bukkit.entity.Player player, String action) Register a right click actionstatic void
sendActionBar
(org.bukkit.command.CommandSender player, String message) sends a message to a playerstatic void
sendMessage
(org.bukkit.command.CommandSender player, String message) sends a message to a playervoid
unregisterRightClick
(org.bukkit.entity.Player player) Unregister a right click actionMethods inherited from class org.bukkit.plugin.java.JavaPlugin
getClassLoader, getCommand, getConfig, getDataFolder, getDefaultBiomeProvider, getDefaultWorldGenerator, getDescription, getFile, getLogger, getPlugin, getPluginLoader, getPluginMeta, getProvidingPlugin, getResource, getServer, getTextResource, init, init, isEnabled, isNaggable, onCommand, onLoad, onTabComplete, reloadConfig, saveConfig, saveDefaultConfig, saveResource, setEnabled, setNaggable, toString
Methods inherited from class org.bukkit.plugin.PluginBase
equals, getName, hashCode
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.bukkit.plugin.Plugin
getComponentLogger, getLog4JLogger, getSLF4JLogger
-
Constructor Details
-
Pipes
public Pipes()
-
-
Method Details
-
onEnable
public void onEnable()- Specified by:
onEnable
in interfaceorg.bukkit.plugin.Plugin
- Overrides:
onEnable
in classorg.bukkit.plugin.java.JavaPlugin
-
onDisable
public void onDisable()- Specified by:
onDisable
in interfaceorg.bukkit.plugin.Plugin
- Overrides:
onDisable
in classorg.bukkit.plugin.java.JavaPlugin
-
registerRightClick
Register a right click action- Parameters:
player
- the player to register the action foraction
- the action to register
-
getRegisteredRightClick
Get a registered a right click action- Parameters:
player
- the player to get the registered action- Returns:
- the registered action
-
unregisterRightClick
public void unregisterRightClick(org.bukkit.entity.Player player) Unregister a right click action- Parameters:
player
- the player to unregister the action for
-
sendMessage
sends a message to a player- Parameters:
player
- the player the message shall be sent tomessage
- the message
-
sendActionBar
sends a message to a player- Parameters:
player
- the player the message shall be sent tomessage
- the message
-
getInstance
returns the plugin instance- Returns:
- the plugin instance
-
hasBlockInfoStorage
public static boolean hasBlockInfoStorage()Returns whether or not BlockInfoStorage is available- Returns:
- whether or not BlockInfoStorage is available
-
getTiming
Returns a timing object for the given name- Parameters:
name
- the name of the timing- Returns:
- the timing object
-
getTiming
public static co.aikar.timings.lib.MCTiming getTiming(String name, co.aikar.timings.lib.MCTiming parent) Returns a timing object for the given name and parent- Parameters:
name
- the name of the timingparent
- the parent timing- Returns:
- the timing object
-