Cloneable
public class Vine extends MaterialData
Constructor | Description |
---|---|
Vine() |
|
Vine(byte data) |
Deprecated.
Magic value
|
Vine(EnumSet<BlockFace> faces) |
|
Vine(BlockFace... faces) |
|
Vine(Material type,
byte data) |
Deprecated.
Magic value
|
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.
|
String |
toString() |
equals, getData, getItemType, hashCode, setData, toItemStack, toItemStack
public Vine()
@Deprecated public Vine(Material type, byte data)
type
- the typedata
- the raw data value@Deprecated public Vine(byte data)
data
- the raw data valuepublic Vine(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 String toString()
toString
in class MaterialData
public Vine clone()
clone
in class MaterialData
Copyright © 2019. All rights reserved.