|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.morbz.minecraft.blocks.RailBlock
public class RailBlock
The class for basic rails. There are straight, curved and sloped rails that can be created via the makeStraight(), makeCurved() and makeSloped() methods.
Nested Class Summary | |
---|---|
static class |
RailBlock.RailCurve
|
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 RailBlock |
makeCurved(RailBlock.RailCurve curve)
Creates curved, flat rails. |
static RailBlock |
makeSloped(Facing4State facing)
Creates straight rails that are sloped. |
static RailBlock |
makeStraight(Facing2State facing)
Creates straight, flat rails going either in north/south or east/west direction. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static RailBlock makeStraight(Facing2State facing)
facing
- The direction of the rails
public static RailBlock makeSloped(Facing4State facing)
facing
- The direction in which the rails are ascending
public static RailBlock makeCurved(RailBlock.RailCurve curve)
curve
- The type of the curve
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 |