Package org.bukkit.material
Class SimpleAttachableMaterialData
- java.lang.Object
-
- org.bukkit.material.MaterialData
-
- org.bukkit.material.SimpleAttachableMaterialData
-
- All Implemented Interfaces:
Cloneable
,Attachable
,Directional
public abstract class SimpleAttachableMaterialData extends MaterialData implements Attachable
Simple utility class for attachable MaterialData subclasses
-
-
Constructor Summary
Constructors Constructor Description SimpleAttachableMaterialData(Material type)
SimpleAttachableMaterialData(Material type, byte data)
Deprecated.Magic valueSimpleAttachableMaterialData(Material type, BlockFace direction)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SimpleAttachableMaterialData
clone()
BlockFace
getFacing()
Gets the direction this block is facingString
toString()
-
Methods inherited from class org.bukkit.material.MaterialData
equals, getData, getItemType, hashCode, setData, toItemStack, toItemStack
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.bukkit.material.Attachable
getAttachedFace
-
Methods inherited from interface org.bukkit.material.Directional
setFacingDirection
-
-
-
-
Constructor Detail
-
SimpleAttachableMaterialData
public SimpleAttachableMaterialData(Material type, BlockFace direction)
-
SimpleAttachableMaterialData
public SimpleAttachableMaterialData(Material type)
-
SimpleAttachableMaterialData
@Deprecated public SimpleAttachableMaterialData(Material type, byte data)
Deprecated.Magic value- Parameters:
type
- the typedata
- the raw data value
-
-
Method Detail
-
getFacing
public BlockFace 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 String toString()
- Overrides:
toString
in classMaterialData
-
clone
public SimpleAttachableMaterialData clone()
- Overrides:
clone
in classMaterialData
-
-