Package org.bukkit.material
Class SimpleAttachableMaterialData
java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.SimpleAttachableMaterialData
- All Implemented Interfaces:
java.lang.Cloneable
,Attachable
,Directional
public abstract class SimpleAttachableMaterialData extends MaterialData implements Attachable
Simple utility class for attachable MaterialData subclasses
-
Constructor Summary
Constructors Constructor Description SimpleAttachableMaterialData(int type)
Deprecated.Magic valueSimpleAttachableMaterialData(int type, byte data)
Deprecated.Magic valueSimpleAttachableMaterialData(int type, BlockFace direction)
SimpleAttachableMaterialData(Material type)
SimpleAttachableMaterialData(Material type, byte data)
Deprecated.Magic valueSimpleAttachableMaterialData(Material type, BlockFace direction)
-
Method Summary
Modifier and Type Method Description SimpleAttachableMaterialData
clone()
BlockFace
getFacing()
Gets the direction this block is facingjava.lang.String
toString()
Methods inherited from class org.bukkit.material.MaterialData
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack
-
Constructor Details
-
SimpleAttachableMaterialData
@Deprecated public SimpleAttachableMaterialData(int type)Deprecated.Magic value- Parameters:
type
- the raw type id
-
SimpleAttachableMaterialData
-
SimpleAttachableMaterialData
-
SimpleAttachableMaterialData
-
SimpleAttachableMaterialData
@Deprecated public SimpleAttachableMaterialData(int type, byte data)Deprecated.Magic value- Parameters:
type
- the raw type iddata
- the raw data value
-
SimpleAttachableMaterialData
Deprecated.Magic value- Parameters:
type
- the typedata
- the raw data value
-
-
Method Details
-
getFacing
Description copied from interface:Directional
Gets the direction this block is facing- Specified by:
getFacing
in interfaceDirectional
- Returns:
- the direction this block is facing
-
toString
public java.lang.String toString()- Overrides:
toString
in classMaterialData
-
clone
- Overrides:
clone
in classMaterialData
-