net.morbz.minecraft.blocks
Interface IBlock

All Known Implementing Classes:
CustomBlock, DirtBlock, DoorBlock, PlanksBlock, QuartzBlock, RailBlock, RedstoneTorchBlock, SandBlock, SandstoneBlock, SimpleBlock, SpecialRailBlock, StainedBlock, StoneBlock, StoneBrickBlock

public interface IBlock

Interface for all blocks.

Author:
MorbZ

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.
 

Method Detail

getBlockId

byte getBlockId()
Returns the block ID. That is the basic ID of the material without additional data.

Returns:
The block ID

getBlockData

byte getBlockData()
Returns the block data. It can hold additional information about the block depending on the material.

Returns:
The block data. Only the 4 rightmost bits are relevant.

getTransparency

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.

Returns:
The transparency level