|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.morbz.minecraft.blocks.SpecialRailBlock
public class SpecialRailBlock
The class for special rails (powered, detector and activator). There are straight and sloped rails that can be created via the makeStraight() and makeSloped() methods. Special rails cannot be curved.
Nested Class Summary | |
---|---|
static class |
SpecialRailBlock.SpecialRailMaterial
The type of the special rail. |
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 SpecialRailBlock |
makeSloped(SpecialRailBlock.SpecialRailMaterial material,
Facing4State facing,
boolean isActive)
Creates straight rails that are sloped. |
static SpecialRailBlock |
makeStraight(SpecialRailBlock.SpecialRailMaterial material,
Facing2State facing,
boolean isActive)
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 SpecialRailBlock makeStraight(SpecialRailBlock.SpecialRailMaterial material, Facing2State facing, boolean isActive)
material
- The type of the special railsfacing
- The direction of the railsisActive
- Whether the rails are active
public static SpecialRailBlock makeSloped(SpecialRailBlock.SpecialRailMaterial material, Facing4State facing, boolean isActive)
material
- The type of the special railsfacing
- The direction in which the rails are ascendingisActive
- Whether the rails are active
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 |