net.morbz.minecraft.blocks
Enum StoneBlock

java.lang.Object
  extended by java.lang.Enum<StoneBlock>
      extended by net.morbz.minecraft.blocks.StoneBlock
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<StoneBlock>, IBlock

public enum StoneBlock
extends java.lang.Enum<StoneBlock>
implements IBlock

The class for the stone, granite, etc.

Author:
MorbZ

Enum Constant Summary
ANDESITE
           
DIORITE
           
GRANITE
           
SMOOTH_ANDESITE
           
SMOOTH_DIORITE
           
SMOOTH_GRANITE
           
STONE
           
 
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 StoneBlock valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static StoneBlock[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

STONE

public static final StoneBlock STONE

GRANITE

public static final StoneBlock GRANITE

SMOOTH_GRANITE

public static final StoneBlock SMOOTH_GRANITE

DIORITE

public static final StoneBlock DIORITE

SMOOTH_DIORITE

public static final StoneBlock SMOOTH_DIORITE

ANDESITE

public static final StoneBlock ANDESITE

SMOOTH_ANDESITE

public static final StoneBlock SMOOTH_ANDESITE
Method Detail

values

public static StoneBlock[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (StoneBlock c : StoneBlock.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static StoneBlock valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getBlockId

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

Specified by:
getBlockId in interface IBlock
Returns:
The block ID

getBlockData

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

Specified by:
getBlockData in interface IBlock
Returns:
The block data. Only the 4 rightmost bits are relevant.

getTransparency

public 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.

Specified by:
getTransparency in interface IBlock
Returns:
The transparency level