java.lang.Cloneable
public class Vine extends MaterialData
Constructor | Description |
---|---|
Vine() |
|
Vine(byte data) |
Deprecated.
Magic value
|
Vine(int type,
byte data) |
Deprecated.
Magic value
|
Vine(java.util.EnumSet<BlockFace> faces) |
|
Vine(BlockFace... faces) |
Modifier and Type | Method | Description |
---|---|---|
Vine |
clone() |
|
boolean |
isOnFace(BlockFace face) |
Check if the vine is attached to the specified face of an adjacent
block.
|
void |
putOnFace(BlockFace face) |
Attach the vine to the specified face of an adjacent block.
|
void |
removeFromFace(BlockFace face) |
Detach the vine from the specified face of an adjacent block.
|
java.lang.String |
toString() |
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack
public Vine()
@Deprecated public Vine(int type, byte data)
type
- the raw type iddata
- the raw data value@Deprecated public Vine(byte data)
data
- the raw data valuepublic Vine(BlockFace... faces)
public Vine(java.util.EnumSet<BlockFace> faces)
public boolean isOnFace(BlockFace face)
BlockFace.NORTH_EAST
.face
- The face to check.public void putOnFace(BlockFace face)
face
- The face to attach.public void removeFromFace(BlockFace face)
face
- The face to detach.public java.lang.String toString()
toString
in class MaterialData
public Vine clone()
clone
in class MaterialData
Copyright © 2018. All rights reserved.