public class DirectionMetaImpl extends Object implements DirectionMeta
| Constructor and Description |
|---|
DirectionMetaImpl() |
| Modifier and Type | Method and Description |
|---|---|
Substance[] |
applyTo(MetaCollection collection)
Invoked to register the meta tag
|
Meta<Block> |
decode(Block instance,
float yaw,
byte direction,
byte cx,
byte cy,
byte cz,
short damageValue)
Decodes the block meta
|
BlockDirection |
direction()
Obtains the facing direction of this block
|
byte |
encode()
Encodes the block metadata into a single byte, which is then combined with the rest of the metadata
|
Meta<Block> |
make()
Make a new instance of this meta object
|
void |
setDirection(BlockDirection direction)
Sets the facing direction of the block
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdecodeMeta, dependencies, encodeMetapublic DirectionMetaImpl()
public BlockDirection direction()
DirectionMetadirection in interface DirectionMetapublic void setDirection(BlockDirection direction)
DirectionMetasetDirection in interface DirectionMetadirection - the direction to facepublic byte encode()
BlockMetapublic Meta<Block> decode(Block instance, float yaw, byte direction, byte cx, byte cy, byte cz, short damageValue)
BlockMetapublic Meta<Block> make()
MetaCopyright © 2016. All rights reserved.