java.lang.Cloneable
, Attachable
, Directional
RedstoneTorch
public class Torch extends SimpleAttachableMaterialData
Constructor | Description |
---|---|
Torch() |
|
Torch(int type) |
Deprecated.
Magic value
|
Torch(int type,
byte data) |
Deprecated.
Magic value
|
Torch(Material type) |
|
Torch(Material type,
byte data) |
Deprecated.
Magic value
|
Modifier and Type | Method | Description |
---|---|---|
Torch |
clone() |
|
BlockFace |
getAttachedFace() |
Gets the face that this block is attached on
|
void |
setFacingDirection(BlockFace face) |
Sets the direction that this block is facing in
|
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack
finalize, getClass, notify, notifyAll, wait, wait, wait
getFacing, toString
public Torch()
@Deprecated public Torch(int type)
type
- the raw type idpublic Torch(Material type)
@Deprecated public Torch(int type, byte data)
type
- the raw type iddata
- the raw data value@Deprecated public Torch(Material type, byte data)
type
- the typedata
- the raw data valuepublic BlockFace getAttachedFace()
public void setFacingDirection(BlockFace face)
Directional
face
- The facing directionpublic Torch clone()
clone
in class SimpleAttachableMaterialData
Copyright © 2018. All rights reserved.