net.morbz.minecraft.blocks
Enum SimpleBlock

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

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

The class for all blocks that don't have block data.

Author:
MorbZ

Enum Constant Summary
ACACIA_FENCE
           
AIR
           
BARRIER
           
BEDROCK
           
BIRCH_FENCE
           
BOOKSHELF
           
BRICK_BLOCK
           
BROWN_MUSHROOM
           
CLAY
           
COAL_BLOCK
           
COAL_ORE
           
COBBLESTONE
           
CRAFTING_TABLE
           
DARK_OAK_FENCE
           
DEADBUSH
           
DIAMOND_BLOCK
           
DIAMOND_ORE
           
DRAGON_EGG
           
EMERALD_BLOCK
           
EMERALD_ORE
           
END_STONE
           
FENCE
           
GLASS
           
GLASS_PANE
           
GLOWSTONE
           
GOLD_BLOCK
           
GOLD_ORE
           
GRASS
           
GRAVEL
           
HARDENED_CLAY
           
ICE
           
IRON_BARS
           
IRON_BLOCK
           
IRON_ORE
           
JUNGLE_FENCE
           
LAPIS_BLOCK
           
LAPIS_ORE
           
LAVA
           
LIT_REDSTONE_LAMP
           
LIT_REDSTONE_ORE
           
MELON_BLOCK
           
MOSSY_COBBLESTONE
           
MYCELIUM
           
NETHER_BRICK
           
NETHER_BRICK_FENCE
           
NETHERRACK
           
OBSIDIAN
           
PACKED_ICE
           
PORTAL
           
QUARTZ_ORE
           
RED_MUSHROOM
           
REDSTONE_BLOCK
           
REDSTONE_LAMP
           
REDSTONE_ORE
           
SEA_LANTERN
           
SLIME_BLOCK
           
SNOW
           
SOUL_SAND
           
SPRUCE_FENCE
           
WATER
           
WATERLILY
           
WEB
           
YELLOW_FLOWER
           
 
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 SimpleBlock valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static SimpleBlock[] 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

AIR

public static final SimpleBlock AIR

GRASS

public static final SimpleBlock GRASS

COBBLESTONE

public static final SimpleBlock COBBLESTONE

BEDROCK

public static final SimpleBlock BEDROCK

WATER

public static final SimpleBlock WATER

LAVA

public static final SimpleBlock LAVA

GRAVEL

public static final SimpleBlock GRAVEL

GOLD_ORE

public static final SimpleBlock GOLD_ORE

IRON_ORE

public static final SimpleBlock IRON_ORE

COAL_ORE

public static final SimpleBlock COAL_ORE

GLASS

public static final SimpleBlock GLASS

LAPIS_ORE

public static final SimpleBlock LAPIS_ORE

LAPIS_BLOCK

public static final SimpleBlock LAPIS_BLOCK

WEB

public static final SimpleBlock WEB

DEADBUSH

public static final SimpleBlock DEADBUSH

YELLOW_FLOWER

public static final SimpleBlock YELLOW_FLOWER

BROWN_MUSHROOM

public static final SimpleBlock BROWN_MUSHROOM

RED_MUSHROOM

public static final SimpleBlock RED_MUSHROOM

GOLD_BLOCK

public static final SimpleBlock GOLD_BLOCK

IRON_BLOCK

public static final SimpleBlock IRON_BLOCK

BRICK_BLOCK

public static final SimpleBlock BRICK_BLOCK

BOOKSHELF

public static final SimpleBlock BOOKSHELF

MOSSY_COBBLESTONE

public static final SimpleBlock MOSSY_COBBLESTONE

OBSIDIAN

public static final SimpleBlock OBSIDIAN

DIAMOND_ORE

public static final SimpleBlock DIAMOND_ORE

DIAMOND_BLOCK

public static final SimpleBlock DIAMOND_BLOCK

CRAFTING_TABLE

public static final SimpleBlock CRAFTING_TABLE

REDSTONE_ORE

public static final SimpleBlock REDSTONE_ORE

LIT_REDSTONE_ORE

public static final SimpleBlock LIT_REDSTONE_ORE

ICE

public static final SimpleBlock ICE

SNOW

public static final SimpleBlock SNOW

CLAY

public static final SimpleBlock CLAY

FENCE

public static final SimpleBlock FENCE

NETHERRACK

public static final SimpleBlock NETHERRACK

SOUL_SAND

public static final SimpleBlock SOUL_SAND

GLOWSTONE

public static final SimpleBlock GLOWSTONE

PORTAL

public static final SimpleBlock PORTAL

IRON_BARS

public static final SimpleBlock IRON_BARS

GLASS_PANE

public static final SimpleBlock GLASS_PANE

MELON_BLOCK

public static final SimpleBlock MELON_BLOCK

MYCELIUM

public static final SimpleBlock MYCELIUM

WATERLILY

public static final SimpleBlock WATERLILY

NETHER_BRICK

public static final SimpleBlock NETHER_BRICK

NETHER_BRICK_FENCE

public static final SimpleBlock NETHER_BRICK_FENCE

END_STONE

public static final SimpleBlock END_STONE

DRAGON_EGG

public static final SimpleBlock DRAGON_EGG

REDSTONE_LAMP

public static final SimpleBlock REDSTONE_LAMP

LIT_REDSTONE_LAMP

public static final SimpleBlock LIT_REDSTONE_LAMP

EMERALD_ORE

public static final SimpleBlock EMERALD_ORE

EMERALD_BLOCK

public static final SimpleBlock EMERALD_BLOCK

REDSTONE_BLOCK

public static final SimpleBlock REDSTONE_BLOCK

QUARTZ_ORE

public static final SimpleBlock QUARTZ_ORE

SLIME_BLOCK

public static final SimpleBlock SLIME_BLOCK

BARRIER

public static final SimpleBlock BARRIER

SEA_LANTERN

public static final SimpleBlock SEA_LANTERN

HARDENED_CLAY

public static final SimpleBlock HARDENED_CLAY

COAL_BLOCK

public static final SimpleBlock COAL_BLOCK

PACKED_ICE

public static final SimpleBlock PACKED_ICE

SPRUCE_FENCE

public static final SimpleBlock SPRUCE_FENCE

BIRCH_FENCE

public static final SimpleBlock BIRCH_FENCE

JUNGLE_FENCE

public static final SimpleBlock JUNGLE_FENCE

DARK_OAK_FENCE

public static final SimpleBlock DARK_OAK_FENCE

ACACIA_FENCE

public static final SimpleBlock ACACIA_FENCE
Method Detail

values

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

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

valueOf

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