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