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, wait
decodeMeta, dependencies, encodeMeta
public DirectionMetaImpl()
public BlockDirection direction()
DirectionMeta
direction
in interface DirectionMeta
public void setDirection(BlockDirection direction)
DirectionMeta
setDirection
in interface DirectionMeta
direction
- the direction to facepublic byte encode()
BlockMeta
public Meta<Block> decode(Block instance, float yaw, byte direction, byte cx, byte cy, byte cz, short damageValue)
BlockMeta
public Meta<Block> make()
Meta
Copyright © 2016. All rights reserved.