public class Banner extends MaterialData implements Attachable
Constructor and Description |
---|
Banner() |
Banner(int type)
Deprecated.
Magic value
|
Banner(int type,
byte data)
Deprecated.
Magic value
|
Banner(Material type) |
Banner(Material type,
byte data)
Deprecated.
Magic value
|
Modifier and Type | Method and Description |
---|---|
Banner |
clone() |
BlockFace |
getAttachedFace()
Gets the face that this block is attached on
|
BlockFace |
getFacing()
Gets the direction this block is facing
|
boolean |
isWallBanner() |
void |
setFacingDirection(BlockFace face)
Sets the direction that this block is facing in
|
String |
toString() |
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack
public 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 value@Deprecated public Banner(int type, byte data)
type
- the raw type iddata
- the raw data valuepublic boolean isWallBanner()
public BlockFace getAttachedFace()
Attachable
getAttachedFace
in interface Attachable
public BlockFace getFacing()
Directional
getFacing
in interface Directional
public void setFacingDirection(BlockFace face)
Directional
setFacingDirection
in interface Directional
face
- The facing directionpublic String toString()
toString
in class MaterialData
public Banner clone()
clone
in class MaterialData
Copyright © 2022. All rights reserved.