public class Vine extends MaterialData
构造器和说明 |
---|
Vine() |
Vine(BlockFace... faces) |
Vine(byte data)
已过时。
不安全的参数
|
Vine(java.util.EnumSet<BlockFace> faces) |
Vine(int type,
byte data)
已过时。
不安全的参数
|
限定符和类型 | 方法和说明 |
---|---|
Vine |
clone() |
boolean |
isOnFace(BlockFace face)
检测藤蔓是否靠在与其相邻方块的表面.
|
void |
putOnFace(BlockFace face)
使这个藤蔓附着在相邻方块的指定表面.
|
void |
removeFromFace(BlockFace face)
从相邻的方块的指定表面拆除藤蔓.
|
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
等一次检查两个表面.
原文:Check if the vine is attached to the specified face of an adjacent
block. You can check two faces at once by passing e.g. BlockFace.NORTH_EAST
.
face
- 朝向public void putOnFace(BlockFace face)
原文:Attach the vine to the specified face of an adjacent block.
face
- 朝向public void removeFromFace(BlockFace face)
原文:Detach the vine from the specified face of an adjacent block.
face
- 朝向public java.lang.String toString()
toString
在类中 MaterialData
public Vine clone()
clone
在类中 MaterialData