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
    Pipes()  
  • Method Summary

    Modifier and Type Method Description
    static Pipes getInstance()
    returns the plugin instance
    String getRegisteredRightClick​(org.bukkit.entity.Player player)
    Get a registered a right click action
    static boolean hasBlockInfoStorage()
    Returns whether or not BlockInfoStorage is available
    void onDisable()  
    void onEnable()  
    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, getDefaultWorldGenerator, getDescription, getFile, getLogger, getPlugin, getPluginLoader, getProvidingPlugin, getResource, getServer, getTextResource, 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

    getSLF4JLogger
  • Constructor Details

  • 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