java.lang.Cloneable
, Attachable
, Directional
public abstract class SimpleAttachableMaterialData extends MaterialData implements Attachable
Constructor | Description |
---|---|
SimpleAttachableMaterialData(Material type) |
|
SimpleAttachableMaterialData(Material type,
byte data) |
Deprecated.
Magic value
|
SimpleAttachableMaterialData(Material type,
BlockFace direction) |
Modifier and Type | Method | Description |
---|---|---|
SimpleAttachableMaterialData |
clone() |
|
BlockFace |
getFacing() |
Gets the direction this block is facing
|
java.lang.String |
toString() |
getAttachedFace
setFacingDirection
equals, getData, getItemType, hashCode, setData, toItemStack, toItemStack
public SimpleAttachableMaterialData(Material type, BlockFace direction)
public SimpleAttachableMaterialData(Material type)
@Deprecated public SimpleAttachableMaterialData(Material type, byte data)
type
- the typedata
- the raw data valuepublic BlockFace getFacing()
Directional
getFacing
in interface Directional
public java.lang.String toString()
toString
in class MaterialData
public SimpleAttachableMaterialData clone()
clone
in class MaterialData
Copyright © 2018. All rights reserved.