public class Banner extends MaterialData implements Attachable
| 构造器和说明 |
|---|
Banner() |
Banner(int type)
已过时。
不安全的参数
|
Banner(int type,
byte data)
已过时。
不安全的参数
|
Banner(Material type) |
Banner(Material type,
byte data)
已过时。
不安全的参数
|
| 限定符和类型 | 方法和说明 |
|---|---|
Banner |
clone() |
BlockFace |
getAttachedFace()
获取这个方块附着的朝向.
|
BlockFace |
getFacing()
获取这个方块的朝向.
|
boolean |
isWallBanner() |
void |
setFacingDirection(BlockFace face)
设置这个方块的朝向.
|
java.lang.String |
toString() |
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStackpublic Banner()
public Banner(Material type)
@Deprecated public Banner(int type)
type - the raw type id@Deprecated public Banner(Material type, byte data)
type - the typedata - the raw data@Deprecated
public Banner(int type,
byte data)
type - the raw type iddata - the raw datapublic boolean isWallBanner()
public BlockFace getAttachedFace()
Attachable原文: Gets the face that this block is attached on
getAttachedFace 在接口中 Attachablepublic BlockFace getFacing()
Directional原文:Gets the direction this block is facing
getFacing 在接口中 Directionalpublic void setFacingDirection(BlockFace face)
Directional原文:Sets the direction that this block is facing in
setFacingDirection 在接口中 Directionalface - 这个方块的朝向public java.lang.String toString()
toString 在类中 MaterialDatapublic Banner clone()
clone 在类中 MaterialData