Enum type inappropriate for block id constants.

This commit is contained in:
Justin Aquadro 2011-04-20 08:13:14 +00:00
parent ecc6bd04c6
commit e78f28b25f

View file

@ -6,97 +6,97 @@ namespace Substrate
{
using NBT;
public enum BlockType
public static class BlockType
{
AIR = 0,
STONE = 1,
GRASS = 2,
DIRT = 3,
COBBLESTONE = 4,
WOOD_PLANK = 5,
SAPLING = 6,
BEDROCK = 7,
WATER = 8,
STATIONARY_WATER = 9,
LAVA = 10,
STATIONARY_LAVA = 11,
SAND = 12,
GRAVEL = 13,
GOLD_ORE = 14,
IRON_ORE = 15,
COAL_ORE = 16,
WOOD = 17,
LEAVES = 18,
SPONGE = 19,
GLASS = 20,
LAPIS_ORE = 21,
LAPIS_BLOCK = 22,
DISPENSER = 23,
SANDSTONE = 24,
NOTE_BLOCK = 25,
BED = 26,
POWERED_RAIL = 27,
DETECTOR_RAIL = 28,
WOOL = 35,
YELLOW_FLOWER = 37,
RED_ROSE = 38,
BROWN_MUSHROOM = 39,
RED_MUSHROOM = 40,
GOLD_BLOCK = 41,
IRON_BLOCK = 42,
DOUBLE_SLAB = 43,
SLAB = 44,
BRICK_BLOCK = 45,
TNT = 46,
BOOKSHELF = 47,
MOSS_STONE = 48,
OBSIDIAN = 49,
TORCH = 50,
FIRE = 51,
MONSTER_SPAWNER = 52,
WOOD_STAIRS = 53,
CHEST = 54,
REDSTONE_WIRE = 55,
DIAMOND_ORE = 56,
DIAMOND_BLOCK = 57,
CRAFTING_TABLE = 58,
CROPS = 59,
FARMLAND = 60,
FURNACE = 61,
BURNING_FURNACE = 62,
SIGN_POST = 63,
WOOD_DOOR = 64,
LADDER = 65,
RAILS = 66,
COBBLESTONE_STAIRS = 67,
WALL_SIGN = 68,
LEVER = 69,
STONE_PLATE = 70,
IRON_DOOR = 71,
WOOD_PLATE = 72,
REDSTONE_ORE = 73,
GLOWING_REDSTONE_ORE = 74,
REDSTONE_TORCH_OFF = 75,
REDSTONE_TORCH_ON = 76,
STONE_BUTTON = 77,
SNOW = 78,
ICE = 79,
SNOW_BLOCK = 80,
CACTUS = 81,
CLAY_BLOCK = 82,
SUGAR_CANE = 83,
JUKEBOX = 84,
FENCE = 85,
PUMPKIN = 86,
NETHERRACK = 87,
SOUL_SAND = 88,
GLOWSTONE_BLOCK = 89,
PORTAL = 90,
JACK_O_LANTERN = 91,
CAKE_BLOCK = 92,
REDSTONE_REPEATER_ON = 93,
REDSTONE_REPEATER_OFF = 94,
LOCKED_CHEST = 95,
public const int AIR = 0;
public const int STONE = 1;
public const int GRASS = 2;
public const int DIRT = 3;
public const int COBBLESTONE = 4;
public const int WOOD_PLANK = 5;
public const int SAPLING = 6;
public const int BEDROCK = 7;
public const int WATER = 8;
public const int STATIONARY_WATER = 9;
public const int LAVA = 10;
public const int STATIONARY_LAVA = 11;
public const int SAND = 12;
public const int GRAVEL = 13;
public const int GOLD_ORE = 14;
public const int IRON_ORE = 15;
public const int COAL_ORE = 16;
public const int WOOD = 17;
public const int LEAVES = 18;
public const int SPONGE = 19;
public const int GLASS = 20;
public const int LAPIS_ORE = 21;
public const int LAPIS_BLOCK = 22;
public const int DISPENSER = 23;
public const int SANDSTONE = 24;
public const int NOTE_BLOCK = 25;
public const int BED = 26;
public const int POWERED_RAIL = 27;
public const int DETECTOR_RAIL = 28;
public const int WOOL = 35;
public const int YELLOW_FLOWER = 37;
public const int RED_ROSE = 38;
public const int BROWN_MUSHROOM = 39;
public const int RED_MUSHROOM = 40;
public const int GOLD_BLOCK = 41;
public const int IRON_BLOCK = 42;
public const int DOUBLE_SLAB = 43;
public const int SLAB = 44;
public const int BRICK_BLOCK = 45;
public const int TNT = 46;
public const int BOOKSHELF = 47;
public const int MOSS_STONE = 48;
public const int OBSIDIAN = 49;
public const int TORCH = 50;
public const int FIRE = 51;
public const int MONSTER_SPAWNER = 52;
public const int WOOD_STAIRS = 53;
public const int CHEST = 54;
public const int REDSTONE_WIRE = 55;
public const int DIAMOND_ORE = 56;
public const int DIAMOND_BLOCK = 57;
public const int CRAFTING_TABLE = 58;
public const int CROPS = 59;
public const int FARMLAND = 60;
public const int FURNACE = 61;
public const int BURNING_FURNACE = 62;
public const int SIGN_POST = 63;
public const int WOOD_DOOR = 64;
public const int LADDER = 65;
public const int RAILS = 66;
public const int COBBLESTONE_STAIRS = 67;
public const int WALL_SIGN = 68;
public const int LEVER = 69;
public const int STONE_PLATE = 70;
public const int IRON_DOOR = 71;
public const int WOOD_PLATE = 72;
public const int REDSTONE_ORE = 73;
public const int GLOWING_REDSTONE_ORE = 74;
public const int REDSTONE_TORCH_OFF = 75;
public const int REDSTONE_TORCH_ON = 76;
public const int STONE_BUTTON = 77;
public const int SNOW = 78;
public const int ICE = 79;
public const int SNOW_BLOCK = 80;
public const int CACTUS = 81;
public const int CLAY_BLOCK = 82;
public const int SUGAR_CANE = 83;
public const int JUKEBOX = 84;
public const int FENCE = 85;
public const int PUMPKIN = 86;
public const int NETHERRACK = 87;
public const int SOUL_SAND = 88;
public const int GLOWSTONE_BLOCK = 89;
public const int PORTAL = 90;
public const int JACK_O_LANTERN = 91;
public const int CAKE_BLOCK = 92;
public const int REDSTONE_REPEATER_ON = 93;
public const int REDSTONE_REPEATER_OFF = 94;
public const int LOCKED_CHEST = 95;
}
public class BlockInfo