BlockData
.@Deprecated public class MaterialData extends Object implements Cloneable
Constructor and Description |
---|
MaterialData(Material type)
Deprecated.
|
MaterialData(Material type,
byte data)
Deprecated.
Magic value
|
Modifier and Type | Method and Description |
---|---|
MaterialData |
clone()
Deprecated.
|
boolean |
equals(Object obj)
Deprecated.
|
byte |
getData()
Deprecated.
Magic value
|
Material |
getItemType()
Deprecated.
Gets the Material that this MaterialData represents
|
int |
hashCode()
Deprecated.
|
void |
setData(byte data)
Deprecated.
Magic value
|
ItemStack |
toItemStack()
Deprecated.
this method creates an ItemStack of size 0 which is not
generally useful. Consider
toItemStack(int) . |
ItemStack |
toItemStack(int amount)
Deprecated.
Creates a new ItemStack based on this MaterialData
|
String |
toString()
Deprecated.
|
public MaterialData(Material type)
@Deprecated public MaterialData(Material type, byte data)
type
- the typedata
- the raw data value@Deprecated public byte getData()
@Deprecated public void setData(byte data)
data
- New raw datapublic Material getItemType()
@Deprecated public ItemStack toItemStack()
toItemStack(int)
.public ItemStack toItemStack(int amount)
amount
- The stack size of the new stackpublic MaterialData clone()
Copyright © 2021. All rights reserved.