@ThreadSafe public interface Block extends BlockMetaOwner<Block>
Modifier and Type | Method and Description |
---|---|
byte |
meta()
Gets the tile data
|
Position |
position()
Returns the Location of the Block
|
Block |
relativeBlock(Vector vector)
Returns a block immediately to the direction specified
|
void |
setMeta(byte data)
Sets the tile data
|
void |
setSubstance(Substance substance)
Sets the substance the tile is made of
|
void |
setSubstanceAndMeta(Substance substance,
byte data)
Sets the substance the tile is made of and its tile data
|
Substance |
substance()
Gets the substance the tile is made of
|
applyMeta, applyMeta, clearMeta, newMetaIfNull, obtainMeta, ownedMeta
Substance substance()
void setSubstance(Substance substance)
substance
- the substance the tile should be set tovoid setSubstanceAndMeta(Substance substance, byte data)
substance
- the substance the tile should be set todata
- the data the tile should be set tobyte meta()
void setMeta(byte data)
data
- the data to set the tileBlock relativeBlock(Vector vector)
vector
- the direction to look for the block adjacent to the currentCopyright © 2016. All rights reserved.