|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.morbz.minecraft.blocks.CustomBlock
public class CustomBlock
A custom block for testing purposes and internal functions. The block ID and block data can be set freely.
Constructor Summary | |
---|---|
CustomBlock(int blockId,
int blockData,
int transparency)
Creates a new instance. |
Method Summary | |
---|---|
byte |
getBlockData()
Returns the block data. |
byte |
getBlockId()
Returns the block ID. |
int |
getTransparency()
Returns the transparency level of this block. 0 means fully opaque, 1 means fully transparent and values > 1 mean transparent but the light level is decreased by n at this block. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CustomBlock(int blockId, int blockData, int transparency)
blockId
- The block IDblockData
- The block datatransparency
- The transparency of the blockMethod Detail |
---|
public byte getBlockId()
getBlockId
in interface IBlock
public byte getBlockData()
getBlockData
in interface IBlock
public int getTransparency()
getTransparency
in interface IBlock
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |