|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.morbz.minecraft.blocks.DoorBlock
public class DoorBlock
The class for doors of all materials. A door consists of an upper and a lower block. Both can be can be created via the makeUpper() and makeLower() methods.
| Nested Class Summary | |
|---|---|
static class |
DoorBlock.DoorMaterial
The material of which the door consists. |
static class |
DoorBlock.HingeSide
The site on which the hinge is. |
| 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. |
static DoorBlock |
makeLower(DoorBlock.DoorMaterial material,
Facing4State facing,
boolean isOpen)
Creates the lower part of a door. |
static DoorBlock |
makeUpper(DoorBlock.DoorMaterial material,
DoorBlock.HingeSide hinge)
Creates the upper part of a door. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static DoorBlock makeUpper(DoorBlock.DoorMaterial material,
DoorBlock.HingeSide hinge)
material - The material of which the door consistshinge - Whether the hinge is on the left or right side
public static DoorBlock makeLower(DoorBlock.DoorMaterial material,
Facing4State facing,
boolean isOpen)
material - The material of which the door consistsfacing - The direction in which the door is facingisOpen - Whether the door is open
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 | |||||||||