Enum Block.Type

java.lang.Object
  extended by java.lang.Enum<Block.Type>
      extended by Block.Type
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Block.Type>
Enclosing class:
Block

public static enum Block.Type
extends java.lang.Enum<Block.Type>

Type - Used to identify blocks


Enum Constant Summary
Enum Constant and Description
Air
           
Bedrock
           
BookShelf
           
Brick
           
BrownMushroom
           
BurningFurnace
           
Cactus
           
Chest
           
Clay
           
Cloth
           
CoalOre
           
Cobblestone
           
CobblestoneStairs
           
Crops
           
DiamondOre
           
Dirt
           
DoubleStep
           
Fence
           
Fire
           
Furnace
           
Glass
           
GlowingRedstoneOre
           
GoldBlock
           
GoldOre
           
Grass
           
Gravel
           
Ice
           
IronBlock
           
IronDoor
           
IronOre
           
JackOLantern
           
Jukebox
           
Ladder
           
Lava
           
Leaves
           
Lever
           
LightStone
           
Log
           
MobSpawner
           
MossyCobblestone
           
Netherstone
           
Obsidian
           
Portal
           
Pumpkin
           
Rails
           
RedMushroom
           
RedRose
           
RedstoneOre
           
RedstoneTorchOff
           
RedstoneTorchOn
           
RedstoneWire
           
Reed
           
Sand
           
Sapling
           
SignPost
           
SlowSand
           
Snow
           
SnowBlock
           
Soil
           
Sponge
           
StationaryLava
           
StationaryWater
           
Step
           
Stone
           
StoneButton
           
StonePlate
           
TNT
           
Torch
           
WallSign
           
Water
           
Wood
           
WoodDoor
           
WoodPlate
           
WoodStairs
           
Workbench
           
YellowFlower
           
 
Method Summary
Modifier and Type Method and Description
static Block.Type fromId(int type)
           
 int getType()
           
static Block.Type valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Block.Type[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, 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 Block.Type Air

Stone

public static final Block.Type Stone

Grass

public static final Block.Type Grass

Dirt

public static final Block.Type Dirt

Cobblestone

public static final Block.Type Cobblestone

Wood

public static final Block.Type Wood

Sapling

public static final Block.Type Sapling

Bedrock

public static final Block.Type Bedrock

Water

public static final Block.Type Water

StationaryWater

public static final Block.Type StationaryWater

Lava

public static final Block.Type Lava

StationaryLava

public static final Block.Type StationaryLava

Sand

public static final Block.Type Sand

Gravel

public static final Block.Type Gravel

GoldOre

public static final Block.Type GoldOre

IronOre

public static final Block.Type IronOre

CoalOre

public static final Block.Type CoalOre

Log

public static final Block.Type Log

Leaves

public static final Block.Type Leaves

Sponge

public static final Block.Type Sponge

Glass

public static final Block.Type Glass

Cloth

public static final Block.Type Cloth

YellowFlower

public static final Block.Type YellowFlower

RedRose

public static final Block.Type RedRose

BrownMushroom

public static final Block.Type BrownMushroom

RedMushroom

public static final Block.Type RedMushroom

GoldBlock

public static final Block.Type GoldBlock

IronBlock

public static final Block.Type IronBlock

DoubleStep

public static final Block.Type DoubleStep

Step

public static final Block.Type Step

Brick

public static final Block.Type Brick

TNT

public static final Block.Type TNT

BookShelf

public static final Block.Type BookShelf

MossyCobblestone

public static final Block.Type MossyCobblestone

Obsidian

public static final Block.Type Obsidian

Torch

public static final Block.Type Torch

Fire

public static final Block.Type Fire

MobSpawner

public static final Block.Type MobSpawner

WoodStairs

public static final Block.Type WoodStairs

Chest

public static final Block.Type Chest

RedstoneWire

public static final Block.Type RedstoneWire

DiamondOre

public static final Block.Type DiamondOre

Workbench

public static final Block.Type Workbench

Crops

public static final Block.Type Crops

Soil

public static final Block.Type Soil

Furnace

public static final Block.Type Furnace

BurningFurnace

public static final Block.Type BurningFurnace

SignPost

public static final Block.Type SignPost

WoodDoor

public static final Block.Type WoodDoor

Ladder

public static final Block.Type Ladder

Rails

public static final Block.Type Rails

CobblestoneStairs

public static final Block.Type CobblestoneStairs

WallSign

public static final Block.Type WallSign

Lever

public static final Block.Type Lever

StonePlate

public static final Block.Type StonePlate

IronDoor

public static final Block.Type IronDoor

WoodPlate

public static final Block.Type WoodPlate

RedstoneOre

public static final Block.Type RedstoneOre

GlowingRedstoneOre

public static final Block.Type GlowingRedstoneOre

RedstoneTorchOff

public static final Block.Type RedstoneTorchOff

RedstoneTorchOn

public static final Block.Type RedstoneTorchOn

StoneButton

public static final Block.Type StoneButton

Snow

public static final Block.Type Snow

Ice

public static final Block.Type Ice

SnowBlock

public static final Block.Type SnowBlock

Cactus

public static final Block.Type Cactus

Clay

public static final Block.Type Clay

Reed

public static final Block.Type Reed

Jukebox

public static final Block.Type Jukebox

Fence

public static final Block.Type Fence

Pumpkin

public static final Block.Type Pumpkin

Netherstone

public static final Block.Type Netherstone

SlowSand

public static final Block.Type SlowSand

LightStone

public static final Block.Type LightStone

Portal

public static final Block.Type Portal

JackOLantern

public static final Block.Type JackOLantern
Method Detail

values

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

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

valueOf

public static Block.Type 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

getType

public int getType()

fromId

public static Block.Type fromId(int type)