Package org.bukkit.material
Class MaterialData
- java.lang.Object
-
- org.bukkit.material.MaterialData
-
- All Implemented Interfaces:
Cloneable
- Direct Known Subclasses:
Banner
,Bed
,Cake
,Cauldron
,Coal
,CocoaPlant
,Command
,Comparator
,Crops
,Diode
,DirectionalContainer
,Door
,Dye
,FlowerPot
,Gate
,Hopper
,LongGrass
,Mushroom
,NetherWarts
,Observer
,PistonBaseMaterial
,PistonExtensionMaterial
,PressurePlate
,Pumpkin
,Rails
,RedstoneWire
,Sandstone
,Sign
,SimpleAttachableMaterialData
,Skull
,SpawnEgg
,Stairs
,TexturedMaterial
,Tripwire
,Vine
,Wood
,Wool
@Deprecated public class MaterialData extends Object implements Cloneable
Deprecated.all usage of MaterialData is deprecated and subject to removal. UseBlockData
.Handles specific metadata for certain items or blocks
-
-
Constructor Summary
Constructors Constructor Description MaterialData(Material type)
Deprecated.MaterialData(Material type, byte data)
Deprecated.Magic value
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description MaterialData
clone()
Deprecated.boolean
equals(Object obj)
Deprecated.byte
getData()
Deprecated.Magic valueMaterial
getItemType()
Deprecated.Gets the Material that this MaterialData representsint
hashCode()
Deprecated.void
setData(byte data)
Deprecated.Magic valueItemStack
toItemStack()
Deprecated.this method creates an ItemStack of size 0 which is not generally useful.ItemStack
toItemStack(int amount)
Deprecated.Creates a new ItemStack based on this MaterialDataString
toString()
Deprecated.
-
-
-
Constructor Detail
-
MaterialData
public MaterialData(Material type)
Deprecated.
-
MaterialData
@Deprecated public MaterialData(Material type, byte data)
Deprecated.Magic value- Parameters:
type
- the typedata
- the raw data value
-
-
Method Detail
-
getData
@Deprecated public byte getData()
Deprecated.Magic valueGets the raw data in this material- Returns:
- Raw data
-
setData
@Deprecated public void setData(byte data)
Deprecated.Magic valueSets the raw data of this material- Parameters:
data
- New raw data
-
getItemType
public Material getItemType()
Deprecated.Gets the Material that this MaterialData represents- Returns:
- Material represented by this MaterialData
-
toItemStack
@Deprecated public ItemStack toItemStack()
Deprecated.this method creates an ItemStack of size 0 which is not generally useful. ConsidertoItemStack(int)
.Creates a new ItemStack based on this MaterialData- Returns:
- New ItemStack containing a copy of this MaterialData
-
toItemStack
public ItemStack toItemStack(int amount)
Deprecated.Creates a new ItemStack based on this MaterialData- Parameters:
amount
- The stack size of the new stack- Returns:
- New ItemStack containing a copy of this MaterialData
-
clone
public MaterialData clone()
Deprecated.
-
-