public class CauldronMetaImpl extends Object implements CauldronMeta
Constructor and Description |
---|
CauldronMetaImpl() |
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
|
byte |
encode()
Encodes the block metadata into a single byte, which is then combined with the rest of the metadata
|
short |
filledLevel()
Gets the filled water level of the respective cauldron.
|
double |
filledPercentage()
Gets the filled water level as a percentage.
|
Meta<Block> |
make()
Make a new instance of this meta object
|
void |
setFilledLevel(short level)
Sets the filled water level of the cauldron.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
decodeMeta, dependencies, encodeMeta
public CauldronMetaImpl()
public short filledLevel()
CauldronMeta
filledLevel
in interface CauldronMeta
public void setFilledLevel(short level)
CauldronMeta
setFilledLevel
in interface CauldronMeta
level
- The desired water level.public double filledPercentage()
CauldronMeta
filledPercentage
in interface CauldronMeta
public 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.