com.dillyg10.STAB
Class TabObject

java.lang.Object
  extended by com.dillyg10.STAB.TabObject

public class TabObject
extends java.lang.Object

This represents the Tab list used throughout the plugin.

Author:
dillyg10

Field Summary
static int MAX_X
          The max row size for the tab list.
static int MAX_Y
          The max collum size for the tab list
 
Constructor Summary
TabObject(org.bukkit.plugin.Plugin p, int priority)
          Create a TabObject
TabObject(org.bukkit.plugin.Plugin p, int priority, int id)
          Create a TabObject
 
Method Summary
 void clear()
          Clears the tabs, does not require any packets!
 int getId()
          Get the ID
 org.bukkit.plugin.Plugin getPlugin()
          Get the plugin
 int getPriority()
          Returns the priority of this TabObject
 java.lang.String getTab(int x, int y)
          Returns the String found at x, and y
 void setId(int id)
          Sets the ID
 void setPriority(int priority)
          Sets the priority for this TabObject
 void setTab(int x, int y, java.lang.String tab)
          Sets a tab at the x and y, it is online and ping 9999 by default
 void setTab(int x, int y, java.lang.String tab, boolean online)
          Sets a tab at the x and y, and online equal to online, the ping is 9999 by default
 void setTab(int x, int y, java.lang.String tab, boolean online, int ping)
          Set a tab at the x and y, with online equal to online, and ping equal to ping
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_X

public static final int MAX_X
The max row size for the tab list.

See Also:
Constant Field Values

MAX_Y

public static final int MAX_Y
The max collum size for the tab list

See Also:
Constant Field Values
Constructor Detail

TabObject

public TabObject(org.bukkit.plugin.Plugin p,
                 int priority)
Create a TabObject

Parameters:
p - The Plugin
priority - The Priority @see TabPriority

TabObject

public TabObject(org.bukkit.plugin.Plugin p,
                 int priority,
                 int id)
Create a TabObject

Parameters:
p - The Plugin
priority - The Priority @see TabPriority
id - The id
Method Detail

getPriority

public int getPriority()
Returns the priority of this TabObject

Returns:
The Priority

setPriority

public void setPriority(int priority)
Sets the priority for this TabObject

Parameters:
priority -

setTab

public void setTab(int x,
                   int y,
                   java.lang.String tab)
Sets a tab at the x and y, it is online and ping 9999 by default

Parameters:
x - X location
y - Y location
tab - What you want to set

setTab

public void setTab(int x,
                   int y,
                   java.lang.String tab,
                   boolean online)
Sets a tab at the x and y, and online equal to online, the ping is 9999 by default

Parameters:
x - X location
y - Y location
tab - What you want to set
online - Whether it is online or not, offline will show as blank

setTab

public void setTab(int x,
                   int y,
                   java.lang.String tab,
                   boolean online,
                   int ping)
Set a tab at the x and y, with online equal to online, and ping equal to ping

Parameters:
x - X location
y - Y location
tab - What you want to set
online - Whether it is online or not, offline will show as blank
ping - The ping

getTab

public java.lang.String getTab(int x,
                               int y)
Returns the String found at x, and y

Parameters:
x - X location
y - Y location
Returns:
the tab at that location

getPlugin

public org.bukkit.plugin.Plugin getPlugin()
Get the plugin

Returns:
The Plugin

getId

public int getId()
Get the ID

Returns:
the ID (0 by default)

setId

public void setId(int id)
Sets the ID

Parameters:
id - The ID you want to set it as

clear

public void clear()
Clears the tabs, does not require any packets!