public class Dirt extends MaterialData
| Constructor and Description |
|---|
Dirt() |
Dirt(DirtType dirt) |
Dirt(int type)
Deprecated.
Magic value
|
Dirt(int type,
byte data)
Deprecated.
Magic value
|
Dirt(Material type) |
Dirt(Material type,
byte data)
Deprecated.
Magic value
|
| Modifier and Type | Method and Description |
|---|---|
Dirt |
clone() |
DirtType |
getType()
Gets the current type of this dirt.
|
void |
setType(DirtType type)
Sets the type of this dirt.
|
String |
toString() |
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStackpublic Dirt()
public Dirt(DirtType dirt)
@Deprecated public Dirt(int type)
type - the typepublic Dirt(Material type)
@Deprecated public Dirt(int type, byte data)
type - the typedata - the data@Deprecated public Dirt(Material type, byte data)
type - the typedata - the datapublic DirtType getType()
public void setType(DirtType type)
type - The new type of dirtpublic String toString()
toString in class MaterialDatapublic Dirt clone()
clone in class MaterialDataCopyright © 2021. All rights reserved.