Example #1
0
        public static Block GetBlockById(int blockId)
        {
            Block block = null;

            if (CustomBlockFactory != null)
            {
                block = CustomBlockFactory.GetBlockById(blockId);
            }

            if (block != null)
            {
                return(block);
            }

            block = blockId switch
            {
                0 => new Air(),
                1 => new Stone(),
                2 => new Grass(),
                3 => new Dirt(),
                4 => new Cobblestone(),
                5 => new Planks(),
                6 => new Sapling(),
                7 => new Bedrock(),
                8 => new FlowingWater(),
                9 => new Water(),
                10 => new FlowingLava(),
                11 => new Lava(),
                12 => new Sand(),
                13 => new Gravel(),
                14 => new GoldOre(),
                15 => new IronOre(),
                16 => new CoalOre(),
                17 => new Log(),
                18 => new Leaves(),
                19 => new Sponge(),
                20 => new Glass(),
                21 => new LapisOre(),
                22 => new LapisBlock(),
                23 => new Dispenser(),
                24 => new Sandstone(),
                25 => new Noteblock(),
                26 => new Bed(),
                27 => new GoldenRail(),
                28 => new DetectorRail(),
                29 => new StickyPiston(),
                30 => new Web(),
                31 => new Tallgrass(),
                32 => new Deadbush(),
                33 => new Piston(),
                34 => new PistonArmCollision(),
                35 => new Wool(),
                36 => new Element0(),
                37 => new YellowFlower(),
                38 => new RedFlower(),
                39 => new BrownMushroom(),
                40 => new RedMushroom(),
                41 => new GoldBlock(),
                42 => new IronBlock(),
                43 => new DoubleStoneSlab(),
                44 => new StoneSlab(),
                45 => new BrickBlock(),
                46 => new Tnt(),
                47 => new Bookshelf(),
                48 => new MossyCobblestone(),
                49 => new Obsidian(),
                50 => new Torch(),
                51 => new Fire(),
                52 => new MobSpawner(),
                53 => new OakStairs(),
                54 => new Chest(),
                55 => new RedstoneWire(),
                56 => new DiamondOre(),
                57 => new DiamondBlock(),
                58 => new CraftingTable(),
                59 => new Wheat(),
                60 => new Farmland(),
                61 => new Furnace(),
                62 => new LitFurnace(),
                63 => new StandingSign(),
                64 => new WoodenDoor(),
                65 => new Ladder(),
                66 => new Rail(),
                67 => new StoneStairs(),
                68 => new WallSign(),
                69 => new Lever(),
                70 => new StonePressurePlate(),
                71 => new IronDoor(),
                72 => new WoodenPressurePlate(),
                73 => new RedstoneOre(),
                74 => new LitRedstoneOre(),
                75 => new UnlitRedstoneTorch(),
                76 => new RedstoneTorch(),
                77 => new StoneButton(),
                78 => new SnowLayer(),
                79 => new Ice(),
                80 => new Snow(),
                81 => new Cactus(),
                82 => new Clay(),
                83 => new Reeds(),
                84 => new Jukebox(),
                85 => new Fence(),
                86 => new Pumpkin(),
                87 => new Netherrack(),
                88 => new SoulSand(),
                89 => new Glowstone(),
                90 => new Portal(),
                91 => new LitPumpkin(),
                92 => new Cake(),
                93 => new UnpoweredRepeater(),
                94 => new PoweredRepeater(),
                95 => new InvisibleBedrock(),
                96 => new Trapdoor(),
                97 => new MonsterEgg(),
                98 => new Stonebrick(),
                99 => new BrownMushroomBlock(),
                100 => new RedMushroomBlock(),
                101 => new IronBars(),
                102 => new GlassPane(),
                103 => new MelonBlock(),
                104 => new PumpkinStem(),
                105 => new MelonStem(),
                106 => new Vine(),
                107 => new FenceGate(),
                108 => new BrickStairs(),
                109 => new StoneBrickStairs(),
                110 => new Mycelium(),
                111 => new Waterlily(),
                112 => new NetherBrick(),
                113 => new NetherBrickFence(),
                114 => new NetherBrickStairs(),
                115 => new NetherWart(),
                116 => new EnchantingTable(),
                117 => new BrewingStand(),
                118 => new Cauldron(),
                119 => new EndPortal(),
                120 => new EndPortalFrame(),
                121 => new EndStone(),
                122 => new DragonEgg(),
                123 => new RedstoneLamp(),
                124 => new LitRedstoneLamp(),
                125 => new Dropper(),
                126 => new ActivatorRail(),
                127 => new Cocoa(),
                128 => new SandstoneStairs(),
                129 => new EmeraldOre(),
                130 => new EnderChest(),
                131 => new TripwireHook(),
                132 => new TripWire(),
                133 => new EmeraldBlock(),
                134 => new SpruceStairs(),
                135 => new BirchStairs(),
                136 => new JungleStairs(),
                137 => new CommandBlock(),
                138 => new Beacon(),
                139 => new CobblestoneWall(),
                140 => new FlowerPot(),
                141 => new Carrots(),
                142 => new Potatoes(),
                143 => new WoodenButton(),
                144 => new Skull(),
                145 => new Anvil(),
                146 => new TrappedChest(),
                147 => new LightWeightedPressurePlate(),
                148 => new HeavyWeightedPressurePlate(),
                149 => new UnpoweredComparator(),
                150 => new PoweredComparator(),
                151 => new DaylightDetector(),
                152 => new RedstoneBlock(),
                153 => new QuartzOre(),
                154 => new Hopper(),
                155 => new QuartzBlock(),
                156 => new QuartzStairs(),
                157 => new DoubleWoodenSlab(),
                158 => new WoodenSlab(),
                159 => new StainedHardenedClay(),
                160 => new StainedGlassPane(),
                161 => new Leaves2(),
                162 => new Log2(),
                163 => new AcaciaStairs(),
                164 => new DarkOakStairs(),
                165 => new Slime(),
                167 => new IronTrapdoor(),
                168 => new Prismarine(),
                169 => new SeaLantern(),
                170 => new HayBlock(),
                171 => new Carpet(),
                172 => new HardenedClay(),
                173 => new CoalBlock(),
                174 => new PackedIce(),
                175 => new DoublePlant(),
                176 => new StandingBanner(),
                177 => new WallBanner(),
                178 => new DaylightDetectorInverted(),
                179 => new RedSandstone(),
                180 => new RedSandstoneStairs(),
                181 => new DoubleStoneSlab2(),
                182 => new StoneSlab2(),
                183 => new SpruceFenceGate(),
                184 => new BirchFenceGate(),
                185 => new JungleFenceGate(),
                186 => new DarkOakFenceGate(),
                187 => new AcaciaFenceGate(),
                188 => new RepeatingCommandBlock(),
                189 => new ChainCommandBlock(),
                190 => new HardGlassPane(),
                191 => new HardStainedGlassPane(),
                192 => new ChemicalHeat(),
                193 => new SpruceDoor(),
                194 => new BirchDoor(),
                195 => new JungleDoor(),
                196 => new AcaciaDoor(),
                197 => new DarkOakDoor(),
                198 => new GrassPath(),
                199 => new Frame(),
                200 => new ChorusFlower(),
                201 => new PurpurBlock(),
                202 => new ColoredTorchRg(),
                203 => new PurpurStairs(),
                204 => new ColoredTorchBp(),
                205 => new UndyedShulkerBox(),
                206 => new EndBricks(),
                207 => new FrostedIce(),
                208 => new EndRod(),
                209 => new EndGateway(),
                210 => new Allow(),
                211 => new Deny(),
                212 => new BorderBlock(),
                213 => new Magma(),
                214 => new NetherWartBlock(),
                215 => new RedNetherBrick(),
                216 => new BoneBlock(),
                217 => new StructureVoid(),
                218 => new ShulkerBox(),
                219 => new PurpleGlazedTerracotta(),
                220 => new WhiteGlazedTerracotta(),
                221 => new OrangeGlazedTerracotta(),
                222 => new MagentaGlazedTerracotta(),
                223 => new LightBlueGlazedTerracotta(),
                224 => new YellowGlazedTerracotta(),
                225 => new LimeGlazedTerracotta(),
                226 => new PinkGlazedTerracotta(),
                227 => new GrayGlazedTerracotta(),
                228 => new SilverGlazedTerracotta(),
                229 => new CyanGlazedTerracotta(),
                230 => new Chalkboard(),
                231 => new BlueGlazedTerracotta(),
                232 => new BrownGlazedTerracotta(),
                233 => new GreenGlazedTerracotta(),
                234 => new RedGlazedTerracotta(),
                235 => new BlackGlazedTerracotta(),
                236 => new Concrete(),
                237 => new ConcretePowder(),
                238 => new ChemistryTable(),
                239 => new UnderwaterTorch(),
                240 => new ChorusPlant(),
                241 => new StainedGlass(),
                242 => new Camera(),
                243 => new Podzol(),
                244 => new Beetroot(),
                245 => new Stonecutter(),
                246 => new Glowingobsidian(),
                247 => new Netherreactor(),
                248 => new InfoUpdate(),
                249 => new InfoUpdate2(),
                250 => new MovingBlock(),
                251 => new Observer(),
                252 => new StructureBlock(),
                253 => new HardGlass(),
                254 => new HardStainedGlass(),
                255 => new Reserved6(),
                257 => new PrismarineStairs(),
                258 => new DarkPrismarineStairs(),
                259 => new PrismarineBricksStairs(),
                260 => new StrippedSpruceLog(),
                261 => new StrippedBirchLog(),
                262 => new StrippedJungleLog(),
                263 => new StrippedAcaciaLog(),
                264 => new StrippedDarkOakLog(),
                265 => new StrippedOakLog(),
                266 => new BlueIce(),
                267 => new Element1(),
                268 => new Element2(),
                269 => new Element3(),
                270 => new Element4(),
                271 => new Element5(),
                272 => new Element6(),
                273 => new Element7(),
                274 => new Element8(),
                275 => new Element9(),
                276 => new Element10(),
                277 => new Element11(),
                278 => new Element12(),
                279 => new Element13(),
                280 => new Element14(),
                281 => new Element15(),
                282 => new Element16(),
                283 => new Element17(),
                284 => new Element18(),
                285 => new Element19(),
                286 => new Element20(),
                287 => new Element21(),
                288 => new Element22(),
                289 => new Element23(),
                290 => new Element24(),
                291 => new Element25(),
                292 => new Element26(),
                293 => new Element27(),
                294 => new Element28(),
                295 => new Element29(),
                296 => new Element30(),
                297 => new Element31(),
                298 => new Element32(),
                299 => new Element33(),
                300 => new Element34(),
                301 => new Element35(),
                302 => new Element36(),
                303 => new Element37(),
                304 => new Element38(),
                305 => new Element39(),
                306 => new Element40(),
                307 => new Element41(),
                308 => new Element42(),
                309 => new Element43(),
                310 => new Element44(),
                311 => new Element45(),
                312 => new Element46(),
                313 => new Element47(),
                314 => new Element48(),
                315 => new Element49(),
                316 => new Element50(),
                317 => new Element51(),
                318 => new Element52(),
                319 => new Element53(),
                320 => new Element54(),
                321 => new Element55(),
                322 => new Element56(),
                323 => new Element57(),
                324 => new Element58(),
                325 => new Element59(),
                326 => new Element60(),
                327 => new Element61(),
                328 => new Element62(),
                329 => new Element63(),
                330 => new Element64(),
                331 => new Element65(),
                332 => new Element66(),
                333 => new Element67(),
                334 => new Element68(),
                335 => new Element69(),
                336 => new Element70(),
                337 => new Element71(),
                338 => new Element72(),
                339 => new Element73(),
                340 => new Element74(),
                341 => new Element75(),
                342 => new Element76(),
                343 => new Element77(),
                344 => new Element78(),
                345 => new Element79(),
                346 => new Element80(),
                347 => new Element81(),
                348 => new Element82(),
                349 => new Element83(),
                350 => new Element84(),
                351 => new Element85(),
                352 => new Element86(),
                353 => new Element87(),
                354 => new Element88(),
                355 => new Element89(),
                356 => new Element90(),
                357 => new Element91(),
                358 => new Element92(),
                359 => new Element93(),
                360 => new Element94(),
                361 => new Element95(),
                362 => new Element96(),
                363 => new Element97(),
                364 => new Element98(),
                365 => new Element99(),
                366 => new Element100(),
                367 => new Element101(),
                368 => new Element102(),
                369 => new Element103(),
                370 => new Element104(),
                371 => new Element105(),
                372 => new Element106(),
                373 => new Element107(),
                374 => new Element108(),
                375 => new Element109(),
                376 => new Element110(),
                377 => new Element111(),
                378 => new Element112(),
                379 => new Element113(),
                380 => new Element114(),
                381 => new Element115(),
                382 => new Element116(),
                383 => new Element117(),
                384 => new Element118(),
                385 => new Seagrass(),
                386 => new Coral(),
                387 => new CoralBlock(),
                388 => new CoralFan(),
                389 => new CoralFanDead(),
                390 => new CoralFanHang(),
                391 => new CoralFanHang2(),
                392 => new CoralFanHang3(),
                393 => new Kelp(),
                394 => new DriedKelpBlock(),
                395 => new AcaciaButton(),
                396 => new BirchButton(),
                397 => new DarkOakButton(),
                398 => new JungleButton(),
                399 => new SpruceButton(),
                400 => new AcaciaTrapdoor(),
                401 => new BirchTrapdoor(),
                402 => new DarkOakTrapdoor(),
                403 => new JungleTrapdoor(),
                404 => new SpruceTrapdoor(),
                405 => new AcaciaPressurePlate(),
                406 => new BirchPressurePlate(),
                407 => new DarkOakPressurePlate(),
                408 => new JunglePressurePlate(),
                409 => new SprucePressurePlate(),
                410 => new CarvedPumpkin(),
                411 => new SeaPickle(),
                412 => new Conduit(),
                414 => new TurtleEgg(),
                415 => new BubbleColumn(),
                416 => new Barrier(),
                417 => new StoneSlab3(),
                418 => new Bamboo(),
                419 => new BambooSapling(),
                420 => new Scaffolding(),
                421 => new StoneSlab4(),
                422 => new DoubleStoneSlab3(),
                423 => new DoubleStoneSlab4(),
                424 => new GraniteStairs(),
                425 => new DioriteStairs(),
                426 => new AndesiteStairs(),
                427 => new PolishedGraniteStairs(),
                428 => new PolishedDioriteStairs(),
                429 => new PolishedAndesiteStairs(),
                430 => new MossyStoneBrickStairs(),
                431 => new SmoothRedSandstoneStairs(),
                432 => new SmoothSandstoneStairs(),
                433 => new EndBrickStairs(),
                434 => new MossyCobblestoneStairs(),
                435 => new NormalStoneStairs(),
                436 => new SpruceStandingSign(),
                437 => new SpruceWallSign(),
                438 => new SmoothStone(),
                439 => new RedNetherBrickStairs(),
                440 => new SmoothQuartzStairs(),
                441 => new BirchStandingSign(),
                442 => new BirchWallSign(),
                443 => new JungleStandingSign(),
                444 => new JungleWallSign(),
                445 => new AcaciaStandingSign(),
                446 => new AcaciaWallSign(),
                447 => new DarkoakStandingSign(),
                448 => new DarkoakWallSign(),
                449 => new Lectern(),
                450 => new Grindstone(),
                451 => new BlastFurnace(),
                452 => new StonecutterBlock(),
                453 => new Smoker(),
                454 => new LitSmoker(),
                455 => new CartographyTable(),
                456 => new FletchingTable(),
                457 => new SmithingTable(),
                458 => new Barrel(),
                459 => new Loom(),
                461 => new Bell(),
                462 => new SweetBerryBush(),
                463 => new Lantern(),
                464 => new Campfire(),
                465 => new LavaCauldron(),
                466 => new Jigsaw(),
                467 => new Wood(),
                468 => new Composter(),
                469 => new LitBlastFurnace(),
                470 => new LightBlock(),
                471 => new WitherRose(),
                472 => new StickyPistonArmCollision(),
                473 => new BeeNest(),
                474 => new Beehive(),
                475 => new HoneyBlock(),
                476 => new HoneycombBlock(),
                477 => new Lodestone(),
                478 => new CrimsonRoots(),
                479 => new WarpedRoots(),
                480 => new CrimsonStem(),
                481 => new WarpedStem(),
                482 => new WarpedWartBlock(),
                483 => new CrimsonFungus(),
                484 => new WarpedFungus(),
                485 => new Shroomlight(),
                486 => new WeepingVines(),
                487 => new CrimsonNylium(),
                488 => new WarpedNylium(),
                489 => new Basalt(),
                490 => new PolishedBasalt(),
                491 => new SoulSoil(),
                492 => new SoulFire(),
                493 => new NetherSprouts(),
                494 => new Target(),
                495 => new StrippedCrimsonStem(),
                496 => new StrippedWarpedStem(),
                497 => new CrimsonPlanks(),
                498 => new WarpedPlanks(),
                499 => new CrimsonDoor(),
                500 => new WarpedDoor(),
                501 => new CrimsonTrapdoor(),
                502 => new WarpedTrapdoor(),
                505 => new CrimsonStandingSign(),
                506 => new WarpedStandingSign(),
                507 => new CrimsonWallSign(),
                508 => new WarpedWallSign(),
                509 => new CrimsonStairs(),
                510 => new WarpedStairs(),
                511 => new CrimsonFence(),
                512 => new WarpedFence(),
                513 => new CrimsonFenceGate(),
                514 => new WarpedFenceGate(),
                515 => new CrimsonButton(),
                516 => new WarpedButton(),
                517 => new CrimsonPressurePlate(),
                518 => new WarpedPressurePlate(),
                519 => new CrimsonSlab(),
                520 => new WarpedSlab(),
                521 => new CrimsonDoubleSlab(),
                522 => new WarpedDoubleSlab(),
                523 => new SoulTorch(),
                524 => new SoulLantern(),
                525 => new NetheriteBlock(),
                526 => new AncientDebris(),
                527 => new RespawnAnchor(),
                528 => new Blackstone(),
                529 => new PolishedBlackstoneBricks(),
                530 => new PolishedBlackstoneBrickStairs(),
                531 => new BlackstoneStairs(),
                532 => new BlackstoneWall(),
                533 => new PolishedBlackstoneBrickWall(),
                534 => new ChiseledPolishedBlackstone(),
                535 => new CrackedPolishedBlackstoneBricks(),
                536 => new GildedBlackstone(),
                537 => new BlackstoneSlab(),
                538 => new BlackstoneDoubleSlab(),
                539 => new PolishedBlackstoneBrickSlab(),
                540 => new PolishedBlackstoneBrickDoubleSlab(),
                541 => new Chain(),
                542 => new TwistingVines(),
                543 => new NetherGoldOre(),
                544 => new CryingObsidian(),
                545 => new SoulCampfire(),
                546 => new PolishedBlackstone(),
                547 => new PolishedBlackstoneStairs(),
                548 => new PolishedBlackstoneSlab(),
                549 => new PolishedBlackstoneDoubleSlab(),
                550 => new PolishedBlackstonePressurePlate(),
                551 => new PolishedBlackstoneButton(),
                552 => new PolishedBlackstoneWall(),
                553 => new WarpedHyphae(),
                554 => new CrimsonHyphae(),
                555 => new StrippedCrimsonHyphae(),
                556 => new StrippedWarpedHyphae(),
                557 => new ChiseledNetherBricks(),
                558 => new CrackedNetherBricks(),
                559 => new QuartzBricks(),
                _ => new Block(blockId)
            };

            return(block);
        }
Example #2
0
        public static Block GetBlockById(byte blockId)
        {
            Block block = null;

            if (CustomBlockFactory != null)
            {
                block = CustomBlockFactory.GetBlockById(blockId);
            }

            if (block != null)
            {
                return(block);
            }

            if (blockId == 0)
            {
                block = new Air();
            }
            else if (blockId == 1)
            {
                block = new Stone();
            }
            else if (blockId == 2)
            {
                block = new Grass();
            }
            else if (blockId == 3)
            {
                block = new Dirt();
            }
            else if (blockId == 4)
            {
                block = new Cobblestone();
            }
            else if (blockId == 5)
            {
                block = new Planks();
            }
            else if (blockId == 6)
            {
                block = new Sapling();
            }
            else if (blockId == 7)
            {
                block = new Bedrock();
            }
            else if (blockId == 8)
            {
                block = new FlowingWater();
            }
            else if (blockId == 9)
            {
                block = new StationaryWater();
            }
            else if (blockId == 10)
            {
                block = new FlowingLava();
            }
            else if (blockId == 11)
            {
                block = new StationaryLava();
            }
            else if (blockId == 12)
            {
                block = new Sand();
            }
            else if (blockId == 13)
            {
                block = new Gravel();
            }
            else if (blockId == 14)
            {
                block = new GoldOre();
            }
            else if (blockId == 15)
            {
                block = new IronOre();
            }
            else if (blockId == 16)
            {
                block = new CoalOre();
            }
            else if (blockId == 17)
            {
                block = new Log();
            }
            else if (blockId == 18)
            {
                block = new Leaves();
            }
            else if (blockId == 19)
            {
                block = new Sponge();
            }
            else if (blockId == 20)
            {
                block = new Glass();
            }
            else if (blockId == 21)
            {
                block = new LapisOre();
            }
            else if (blockId == 22)
            {
                block = new LapisBlock();
            }
            else if (blockId == 23)
            {
                block = new Dispenser();
            }
            else if (blockId == 24)
            {
                block = new Sandstone();
            }
            else if (blockId == 25)
            {
                block = new NoteBlock();
            }
            else if (blockId == 26)
            {
                block = new Bed();
            }
            else if (blockId == 27)
            {
                block = new GoldenRail();
            }
            else if (blockId == 28)
            {
                block = new DetectorRail();
            }
            else if (blockId == 29)
            {
                block = new StickyPiston();
            }
            else if (blockId == 30)
            {
                block = new Cobweb();
            }
            else if (blockId == 31)
            {
                block = new TallGrass();
            }
            else if (blockId == 32)
            {
                block = new DeadBush();
            }
            else if (blockId == 33)
            {
                block = new Piston();
            }
            else if (blockId == 34)
            {
                block = new PistonHead();
            }
            else if (blockId == 35)
            {
                block = new Wool();
            }
            else if (blockId == 37)
            {
                block = new YellowFlower();
            }
            else if (blockId == 38)
            {
                block = new Flower();
            }
            else if (blockId == 39)
            {
                block = new BrownMushroom();
            }
            else if (blockId == 40)
            {
                block = new RedMushroom();
            }
            else if (blockId == 41)
            {
                block = new GoldBlock();
            }
            else if (blockId == 42)
            {
                block = new IronBlock();
            }
            else if (blockId == 43)
            {
                block = new DoubleStoneSlab();
            }
            else if (blockId == 44)
            {
                block = new StoneSlab();
            }
            else if (blockId == 45)
            {
                block = new Bricks();
            }
            else if (blockId == 46)
            {
                block = new Tnt();
            }
            else if (blockId == 47)
            {
                block = new Bookshelf();
            }
            else if (blockId == 48)
            {
                block = new MossStone();
            }
            else if (blockId == 49)
            {
                block = new Obsidian();
            }
            else if (blockId == 50)
            {
                block = new Torch();
            }
            else if (blockId == 51)
            {
                block = new Fire();
            }
            else if (blockId == 52)
            {
                block = new MonsterSpawner();
            }
            else if (blockId == 53)
            {
                block = new OakWoodStairs();
            }
            else if (blockId == 54)
            {
                block = new Chest();
            }

            else if (blockId == 55)
            {
                block = new RedstoneWire();
            }
            else if (blockId == 56)
            {
                block = new DiamondOre();
            }
            else if (blockId == 57)
            {
                block = new DiamondBlock();
            }
            else if (blockId == 58)
            {
                block = new CraftingTable();
            }
            else if (blockId == 59)
            {
                block = new Wheat();
            }
            else if (blockId == 60)
            {
                block = new Farmland();
            }
            else if (blockId == 61)
            {
                block = new Furnace();
            }
            else if (blockId == 62)
            {
                block = new LitFurnace();
            }
            else if (blockId == 63)
            {
                block = new StandingSign();
            }
            else if (blockId == 64)
            {
                block = new WoodenDoor();
            }
            else if (blockId == 65)
            {
                block = new Ladder();
            }
            else if (blockId == 66)
            {
                block = new Rail();
            }
            else if (blockId == 67)
            {
                block = new CobblestoneStairs();
            }
            else if (blockId == 68)
            {
                block = new WallSign();
            }
            else if (blockId == 69)
            {
                block = new Lever();
            }
            else if (blockId == 70)
            {
                block = new StonePressurePlate();
            }
            else if (blockId == 71)
            {
                block = new IronDoor();
            }
            else if (blockId == 72)
            {
                block = new WoodenPressurePlate();
            }
            else if (blockId == 73)
            {
                block = new RedstoneOre();
            }
            else if (blockId == 74)
            {
                block = new LitRedstoneOre();
            }
            else if (blockId == 75)
            {
                block = new UnlitRedstoneTorch();
            }
            else if (blockId == 76)
            {
                block = new RedstoneTorch();
            }
            else if (blockId == 77)
            {
                block = new StoneButton();
            }
            else if (blockId == 78)
            {
                block = new SnowLayer();
            }
            else if (blockId == 79)
            {
                block = new Ice();
            }
            else if (blockId == 80)
            {
                block = new Snow();
            }
            else if (blockId == 81)
            {
                block = new Cactus();
            }
            else if (blockId == 82)
            {
                block = new Clay();
            }
            else if (blockId == 83)
            {
                block = new Reeds();
            }
            else if (blockId == 85)
            {
                block = new Fence();
            }
            else if (blockId == 86)
            {
                block = new Pumpkin();
            }
            else if (blockId == 87)
            {
                block = new Netherrack();
            }
            else if (blockId == 88)
            {
                block = new SoulSand();
            }
            else if (blockId == 89)
            {
                block = new Glowstone();
            }
            else if (blockId == 90)
            {
                block = new Portal();
            }
            else if (blockId == 91)
            {
                block = new LitPumpkin();
            }
            else if (blockId == 92)
            {
                block = new Cake();
            }
            else if (blockId == 93)
            {
                block = new UnpoweredRepeater();
            }
            else if (blockId == 94)
            {
                block = new PoweredRepeater();
            }
            else if (blockId == 95)
            {
                block = new InvisibleBedrock();
            }
            else if (blockId == 96)
            {
                block = new Trapdoor();
            }
            else if (blockId == 97)
            {
                block = new MonsterEgg();
            }
            else if (blockId == 98)
            {
                block = new StoneBrick();
            }
            else if (blockId == 99)
            {
                block = new BrownMushroomBlock();
            }
            else if (blockId == 100)
            {
                block = new RedMushroomBlock();
            }
            else if (blockId == 101)
            {
                block = new IronBars();
            }
            else if (blockId == 102)
            {
                block = new GlassPane();
            }
            else if (blockId == 103)
            {
                block = new Melon();
            }
            else if (blockId == 104)
            {
                block = new PumpkinStem();
            }
            else if (blockId == 105)
            {
                block = new MelonStem();
            }
            else if (blockId == 106)
            {
                block = new Vine();
            }
            else if (blockId == 107)
            {
                block = new FenceGate();
            }
            else if (blockId == 108)
            {
                block = new BrickStairs();
            }
            else if (blockId == 109)
            {
                block = new StoneBrickStairs();
            }

            else if (blockId == 110)
            {
                block = new Mycelium();
            }
            else if (blockId == 111)
            {
                block = new Waterlily();
            }
            else if (blockId == 112)
            {
                block = new NetherBrick();
            }
            else if (blockId == 113)
            {
                block = new NetherBrickFence();
            }
            else if (blockId == 114)
            {
                block = new NetherBrickStairs();
            }
            else if (blockId == 115)
            {
                block = new NetherWart();
            }
            else if (blockId == 116)
            {
                block = new EnchantingTable();
            }
            else if (blockId == 117)
            {
                block = new BrewingStand();
            }
            else if (blockId == 118)
            {
                block = new Cauldron();
            }
            else if (blockId == 119)
            {
                block = new EndPortal();
            }
            else if (blockId == 120)
            {
                block = new EndPortalFrame();
            }
            else if (blockId == 121)
            {
                block = new EndStone();
            }
            else if (blockId == 122)
            {
                block = new DragonEgg();
            }
            else if (blockId == 123)
            {
                block = new RedstoneLamp();
            }
            else if (blockId == 124)
            {
                block = new LitRedstoneLamp();
            }
            else if (blockId == 125)
            {
                block = new Dropper();
            }
            else if (blockId == 126)
            {
                block = new ActivatorRail();
            }
            else if (blockId == 127)
            {
                block = new Cocoa();
            }
            else if (blockId == 128)
            {
                block = new SandStoneStairs();
            }
            else if (blockId == 129)
            {
                block = new EmeraldOre();
            }
            else if (blockId == 130)
            {
                block = new EnderChest();
            }
            else if (blockId == 131)
            {
                block = new TripwireHook();
            }
            else if (blockId == 132)
            {
                block = new Tripwire();
            }
            else if (blockId == 133)
            {
                block = new EmeraldBlock();
            }
            else if (blockId == 134)
            {
                block = new SpruceWoodStairs();
            }
            else if (blockId == 135)
            {
                block = new BirchWoodStairs();
            }
            else if (blockId == 136)
            {
                block = new JungleWoodStairs();
            }
            else if (blockId == 138)
            {
                block = new Beacon();
            }
            else if (blockId == 139)
            {
                block = new CobblestoneWall();
            }
            else if (blockId == 140)
            {
                block = new FlowerPot();
            }
            else if (blockId == 141)
            {
                block = new Carrots();
            }
            else if (blockId == 142)
            {
                block = new Potatoes();
            }
            else if (blockId == 143)
            {
                block = new WoodenButton();
            }
            else if (blockId == 144)
            {
                block = new Skull();
            }
            else if (blockId == 145)
            {
                block = new Anvil();
            }
            else if (blockId == 146)
            {
                block = new TrappedChest();
            }
            else if (blockId == 147)
            {
                block = new LightWeightedPressurePlate();
            }
            else if (blockId == 148)
            {
                block = new HeavyWeightedPressurePlate();
            }
            else if (blockId == 149)
            {
                block = new UnpoweredComparator();
            }
            else if (blockId == 150)
            {
                block = new PoweredComparator();
            }
            else if (blockId == 151)
            {
                block = new DaylightDetector();
            }
            else if (blockId == 152)
            {
                block = new RedstoneBlock();
            }
            else if (blockId == 153)
            {
                block = new QuartzOre();
            }
            else if (blockId == 154)
            {
                block = new Hopper();
            }
            else if (blockId == 155)
            {
                block = new QuartzBlock();
            }
            else if (blockId == 156)
            {
                block = new QuartzStairs();
            }
            else if (blockId == 157)
            {
                block = new DoubleWoodSlab();
            }
            else if (blockId == 158)
            {
                block = new WoodSlab();
            }
            else if (blockId == 159)
            {
                block = new StainedHardenedClay();
            }
            else if (blockId == 160)
            {
                block = new StainedGlassPane();
            }
            else if (blockId == 161)
            {
                block = new AcaciaLeaves();
            }
            else if (blockId == 162)
            {
                block = new AcaciaLog();
            }
            else if (blockId == 163)
            {
                block = new AcaciaStairs();
            }
            else if (blockId == 164)
            {
                block = new DarkOakStairs();
            }

            else if (blockId == 165)
            {
                block = new Slime();
            }
            else if (blockId == 167)
            {
                block = new IronTrapdoor();
            }
            else if (blockId == 168)
            {
                block = new Prismarine();
            }
            else if (blockId == 169)
            {
                block = new SeaLantern();
            }
            else if (blockId == 170)
            {
                block = new HayBlock();
            }
            else if (blockId == 171)
            {
                block = new Carpet();
            }
            else if (blockId == 172)
            {
                block = new HardenedClay();
            }
            else if (blockId == 173)
            {
                block = new CoalBlock();
            }
            else if (blockId == 174)
            {
                block = new PackedIce();
            }
            else if (blockId == 175)
            {
                block = new DoublePlant();
            }
            else if (blockId == 178)
            {
                block = new DaylightDetectorInverted();
            }
            else if (blockId == 179)
            {
                block = new RedSandstone();
            }
            else if (blockId == 180)
            {
                block = new RedSandstoneStairs();
            }
            else if (blockId == 181)
            {
                block = new DoubleRedSandstoneSlab();
            }
            else if (blockId == 182)
            {
                block = new StoneSlab2();
            }
            else if (blockId == 183)
            {
                block = new SpruceFenceGate();
            }
            else if (blockId == 184)
            {
                block = new BirchFenceGate();
            }
            else if (blockId == 185)
            {
                block = new JungleFenceGate();
            }
            else if (blockId == 186)
            {
                block = new DarkOakFenceGate();
            }
            else if (blockId == 187)
            {
                block = new AcaciaFenceGate();
            }
            else if (blockId == 193)
            {
                block = new SpruceDoor();
            }
            else if (blockId == 194)
            {
                block = new BirchDoor();
            }
            else if (blockId == 195)
            {
                block = new JungleDoor();
            }
            else if (blockId == 196)
            {
                block = new AcaciaDoor();
            }
            else if (blockId == 197)
            {
                block = new DarkOakDoor();
            }
            else if (blockId == 198)
            {
                block = new GrassPath();
            }
            else if (blockId == 199)
            {
                block = new ItemFrame();
            }
            else if (blockId == 200)
            {
                block = new ChorusFlower();
            }
            else if (blockId == 201)
            {
                block = new PurPur();
            }
            else if (blockId == 203)
            {
                block = new PurPurStairs();
            }
            else if (blockId == 206)
            {
                block = new EndBrick();
            }
            else if (blockId == 207)
            {
                block = new FrostedIce();
            }
            else if (blockId == 208)
            {
                block = new EndRod();
            }
            else if (blockId == 209)
            {
                block = new EndGateway();
            }
            else if (blockId == 219)
            {
                block = new PurpleGlazedTerracotta();
            }
            else if (blockId == 220)
            {
                block = new WhiteGlazedTerracotta();
            }
            else if (blockId == 221)
            {
                block = new OrangeGlazedTerracotta();
            }
            else if (blockId == 222)
            {
                block = new MagentaGlazedTerracotta();
            }
            else if (blockId == 223)
            {
                block = new LightBlueGlazedTerracotta();
            }
            else if (blockId == 224)
            {
                block = new YellowGlazedTerracotta();
            }
            else if (blockId == 225)
            {
                block = new LimeGlazedTerracotta();
            }
            else if (blockId == 226)
            {
                block = new PinkGlazedTerracotta();
            }
            else if (blockId == 227)
            {
                block = new GrayGlazedTerracotta();
            }
            else if (blockId == 228)
            {
                block = new SilverGlazedTerracotta();
            }
            else if (blockId == 229)
            {
                block = new CyanGlazedTerracotta();
            }
            else if (blockId == 231)
            {
                block = new BlueGlazedTerracotta();
            }
            else if (blockId == 232)
            {
                block = new BrownGlazedTerracotta();
            }
            else if (blockId == 233)
            {
                block = new GreenGlazedTerracotta();
            }
            else if (blockId == 234)
            {
                block = new RedGlazedTerracotta();
            }
            else if (blockId == 235)
            {
                block = new BlackGlazedTerracotta();
            }
            else if (blockId == 236)
            {
                block = new Concrete();
            }
            else if (blockId == 237)
            {
                block = new ConcretePowder();
            }
            else if (blockId == 240)
            {
                block = new ChorusPlant();
            }
            else if (blockId == 241)
            {
                block = new StainedGlass();
            }
            else if (blockId == 243)
            {
                block = new Podzol();
            }
            else if (blockId == 244)
            {
                block = new Beetroot();
            }
            else if (blockId == 245)
            {
                block = new Stonecutter();
            }
            else if (blockId == 246)
            {
                block = new GlowingObsidian();
            }
            else if (blockId == 247)
            {
                block = new NetherReactorCore();
            }
            else if (blockId == 251)
            {
                block = new Observer();
            }
            else
            {
                //				Log.DebugFormat(@"
                //	// Add this missing block to the BlockFactory
                //	else if (blockId == {1}) block = new {0}();
                //
                //	public class {0} : Block
                //	{{
                //		internal {0}() : base({1})
                //		{{
                //		}}
                //	}}
                //", "Missing", blockId);
                block = new Block(blockId);
            }

            return(block);
        }