Cloneable
, Directional
public class Dispenser extends FurnaceAndDispenser
Constructor | Description |
---|---|
Dispenser() |
|
Dispenser(BlockFace direction) |
|
Dispenser(Material type) |
|
Dispenser(Material type,
byte data) |
Deprecated.
Magic value
|
Modifier and Type | Method | Description |
---|---|---|
Dispenser |
clone() |
|
BlockFace |
getFacing() |
Gets the direction this block is facing
|
void |
setFacingDirection(BlockFace face) |
Sets the direction that this block is facing in
|
toString
equals, getData, getItemType, hashCode, setData, toItemStack, toItemStack
public Dispenser()
public Dispenser(BlockFace direction)
public Dispenser(Material type)
@Deprecated public Dispenser(Material type, byte data)
type
- the typedata
- the raw data valuepublic void setFacingDirection(BlockFace face)
Directional
setFacingDirection
in interface Directional
setFacingDirection
in class DirectionalContainer
face
- The facing directionpublic BlockFace getFacing()
Directional
getFacing
in interface Directional
getFacing
in class DirectionalContainer
public Dispenser clone()
clone
in class FurnaceAndDispenser
Copyright © 2020. All rights reserved.