|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.bukkit.material.MaterialData
public class MaterialData
Handles specific metadata for certain items or blocks
Constructor Summary | |
---|---|
MaterialData(int type)
Deprecated. Magic value |
|
MaterialData(int type,
byte data)
Deprecated. Magic value |
|
MaterialData(Material type)
|
|
MaterialData(Material type,
byte data)
Deprecated. Magic value |
Method Summary | |
---|---|
MaterialData |
clone()
|
boolean |
equals(Object obj)
|
byte |
getData()
Deprecated. Magic value |
Material |
getItemType()
Gets the Material that this MaterialData represents |
int |
getItemTypeId()
Deprecated. Magic value |
int |
hashCode()
|
void |
setData(byte data)
Deprecated. Magic value |
ItemStack |
toItemStack()
Creates a new ItemStack based on this MaterialData |
ItemStack |
toItemStack(int amount)
Creates a new ItemStack based on this MaterialData |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
@Deprecated public MaterialData(int type)
public MaterialData(Material type)
@Deprecated public MaterialData(int type, byte data)
@Deprecated public MaterialData(Material type, byte data)
Method Detail |
---|
@Deprecated public byte getData()
@Deprecated public void setData(byte data)
data
- New raw datapublic Material getItemType()
@Deprecated public int getItemTypeId()
public ItemStack toItemStack()
public ItemStack toItemStack(int amount)
amount
- The stack size of the new stack
public String toString()
toString
in class Object
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public MaterialData clone()
clone
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |