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 SimpleAttachableMaterialDataclone()BlockFacegetFacing()Gets the direction this block is facingjava.lang.StringtoString()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:DirectionalGets the direction this block is facing- Specified by:
getFacingin interfaceDirectional- Returns:
- the direction this block is facing
-
toString
public java.lang.String toString()- Overrides:
toStringin classMaterialData
-
clone
- Overrides:
clonein classMaterialData
-