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.
Handles specific metadata for certain items or blocks
- 
Constructor SummaryConstructorsConstructorDescriptionMaterialData(Material type) Deprecated.MaterialData(Material type, byte data) Deprecated.Magic value
- 
Method SummaryModifier and TypeMethodDescriptionclone()Deprecated.booleanDeprecated.bytegetData()Deprecated.Magic valueDeprecated.Gets the Material that this MaterialData representsinthashCode()Deprecated.voidsetData(byte data) Deprecated.Magic valueDeprecated.this method creates an ItemStack of size 0 which is not generally useful.toItemStack(int amount) Deprecated.Creates a new ItemStack based on this MaterialDatatoString()Deprecated.
- 
Constructor Details- 
MaterialDataDeprecated.
- 
MaterialDataDeprecated.Magic value- Parameters:
- type- the type
- data- the raw data value
 
 
- 
- 
Method Details- 
getDataDeprecated.Magic valueGets the raw data in this material- Returns:
- Raw data
 
- 
setDataDeprecated.Magic valueSets the raw data of this material- Parameters:
- data- New raw data
 
- 
getItemTypeDeprecated.Gets the Material that this MaterialData represents- Returns:
- Material represented by this MaterialData
 
- 
toItemStackDeprecated.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
 
- 
toItemStackDeprecated.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
 
- 
toStringDeprecated.
- 
hashCodepublic int hashCode()Deprecated.
- 
equalsDeprecated.
- 
cloneDeprecated.
 
- 
BlockData.