|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.morbz.minecraft.blocks.StainedBlock
public class StainedBlock
A class for all blocks that have a stained version (glass, wool, carpet, clay).
| Nested Class Summary | |
|---|---|
static class |
StainedBlock.StainedColor
The color of the stained block. |
static class |
StainedBlock.StainedMaterial
The material of the stained block. |
| Constructor Summary | |
|---|---|
StainedBlock(StainedBlock.StainedMaterial material,
StainedBlock.StainedColor color)
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 StainedBlock(StainedBlock.StainedMaterial material,
StainedBlock.StainedColor color)
material - The material of the stained blockcolor - The color of the block| Method Detail |
|---|
public byte getBlockId()
getBlockId in interface IBlockpublic byte getBlockData()
getBlockData in interface IBlockpublic int getTransparency()
getTransparency in interface IBlock
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||