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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static Pipes
    returns the plugin instance
    getRegisteredRightClick(org.bukkit.entity.Player player)
    Get a registered a right click action
    static co.aikar.timings.lib.MCTiming
    Returns a timing object for the given name
    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
    static boolean
    Returns whether or not BlockInfoStorage is available
    void
     
    void
     
    void
    registerRightClick(org.bukkit.entity.Player player, String action)
    Register a right click action
    static void
    sendActionBar(org.bukkit.command.CommandSender player, String message)
    sends a message to a player
    static void
    sendMessage(org.bukkit.command.CommandSender player, String message)
    sends a message to a player
    void
    unregisterRightClick(org.bukkit.entity.Player player)
    Unregister a right click action

    Methods 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 interface org.bukkit.plugin.Plugin
      Overrides:
      onEnable in class org.bukkit.plugin.java.JavaPlugin
    • onDisable

      public void onDisable()
      Specified by:
      onDisable in interface org.bukkit.plugin.Plugin
      Overrides:
      onDisable in class org.bukkit.plugin.java.JavaPlugin
    • registerRightClick

      public void registerRightClick(org.bukkit.entity.Player player, String action)
      Register a right click action
      Parameters:
      player - the player to register the action for
      action - the action to register
    • getRegisteredRightClick

      public String getRegisteredRightClick(org.bukkit.entity.Player player)
      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

      public static void sendMessage(org.bukkit.command.CommandSender player, String message)
      sends a message to a player
      Parameters:
      player - the player the message shall be sent to
      message - the message
    • sendActionBar

      public static void sendActionBar(org.bukkit.command.CommandSender player, String message)
      sends a message to a player
      Parameters:
      player - the player the message shall be sent to
      message - the message
    • getInstance

      public static Pipes 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

      public static co.aikar.timings.lib.MCTiming getTiming(String name)
      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 timing
      parent - the parent timing
      Returns:
      the timing object