net.morbz.minecraft.blocks
Enum StoneBrickBlock

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

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

The stone brick block with different structures.

Author:
MorbZ

Enum Constant Summary
CHISELED
           
CRACKED
           
MOSSY
           
NORMAL
           
 
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 StoneBrickBlock valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static StoneBrickBlock[] 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

NORMAL

public static final StoneBrickBlock NORMAL

MOSSY

public static final StoneBrickBlock MOSSY

CRACKED

public static final StoneBrickBlock CRACKED

CHISELED

public static final StoneBrickBlock CHISELED
Method Detail

values

public static StoneBrickBlock[] 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 (StoneBrickBlock c : StoneBrickBlock.values())
    System.out.println(c);

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

valueOf

public static StoneBrickBlock 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