com.quartercode.quarterbukkit.api.select
Class Selection

java.lang.Object
  extended by com.quartercode.quarterbukkit.api.select.Selection

public class Selection
extends java.lang.Object

This class represents a selection in the SelectInventory with a value and the graphical ItemStack.


Constructor Summary
Selection(java.lang.Object value, org.bukkit.inventory.ItemStack itemStack)
          Creates a new selection and sets the value as an Object and the graphical ItemStack.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 org.bukkit.inventory.ItemStack getItemStack()
          Returns the graphical ItemStack.
 java.lang.Object getValue()
          Returns the value as an Object.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Selection

public Selection(java.lang.Object value,
                 org.bukkit.inventory.ItemStack itemStack)
Creates a new selection and sets the value as an Object and the graphical ItemStack.

Parameters:
value - The value as an Object.
itemStack - The graphical ItemStack.
Method Detail

getValue

public java.lang.Object getValue()
Returns the value as an Object.

Returns:
The value as an Object.

getItemStack

public org.bukkit.inventory.ItemStack getItemStack()
Returns the graphical ItemStack.

Returns:
The graphical ItemStack.

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object