public class ItemDisguise extends ObjectDisguise
Constructor and Description |
---|
ItemDisguise()
Creates an instance.
|
ItemDisguise(org.bukkit.inventory.ItemStack itemStack)
Creates an instance.
|
Modifier and Type | Method and Description |
---|---|
ItemDisguise |
clone()
Creates and returns a copy of this object.
|
boolean |
equals(java.lang.Object object)
Indicates whether some other object is "equal to" this one.
|
int |
getAmount()
Gets the amount.
|
int |
getData()
Gets the data value.
|
org.bukkit.inventory.ItemStack |
getItemStack()
Gets the displayed item stack.
|
org.bukkit.Material |
getMaterial()
Gets the material.
|
void |
setAmount(int amount)
Sets the amount.
|
void |
setData(int data)
Sets the data value.
|
void |
setItemStack(org.bukkit.inventory.ItemStack itemStack)
Sets the displayed item stack.
|
void |
setMaterial(org.bukkit.Material material)
Sets the material.
|
java.lang.String |
toString()
Returns a string representation of the object.
|
getTypeId, getTypeId
public ItemDisguise()
public ItemDisguise(org.bukkit.inventory.ItemStack itemStack)
itemStack
- the displayed item stackjava.lang.IllegalArgumentException
- if the item stack is null
public org.bukkit.inventory.ItemStack getItemStack()
public void setItemStack(org.bukkit.inventory.ItemStack itemStack)
itemStack
- the displayed item stackjava.lang.IllegalArgumentException
- if the item stack is nullpublic org.bukkit.Material getMaterial()
public void setMaterial(org.bukkit.Material material)
material
- the materialpublic int getData()
public void setData(int data)
data
- the data valuepublic int getAmount()
public void setAmount(int amount)
amount
- the amountpublic ItemDisguise clone()
clone
in class ObjectDisguise
public boolean equals(java.lang.Object object)
equals
in class ObjectDisguise
true
if this object is the same as the object
argument; false
otherwise