static { try { a[BlockPlanks.EnumType.SPRUCE.ordinal()] = 1; } catch (NoSuchFieldError nosuchfielderror) {; } try { a[BlockPlanks.EnumType.BIRCH.ordinal()] = 2; } catch (NoSuchFieldError nosuchfielderror1) {; } try { a[BlockPlanks.EnumType.JUNGLE.ordinal()] = 3; } catch (NoSuchFieldError nosuchfielderror2) {; } try { a[BlockPlanks.EnumType.ACACIA.ordinal()] = 4; } catch (NoSuchFieldError nosuchfielderror3) {; } try { a[BlockPlanks.EnumType.DARK_OAK.ordinal()] = 5; } catch (NoSuchFieldError nosuchfielderror4) {; } try { a[BlockPlanks.EnumType.OAK.ordinal()] = 6; } catch (NoSuchFieldError nosuchfielderror5) {; } }
/** returns a list of blocks with the same ID, but different meta (eg: wood returns 4 blocks) */ public void getSubBlocks(Item itemIn, CreativeTabs tab, List list) { list.add(new ItemStack(itemIn, 1, BlockPlanks.EnumType.OAK.func_176839_a())); list.add(new ItemStack(itemIn, 1, BlockPlanks.EnumType.SPRUCE.func_176839_a())); list.add(new ItemStack(itemIn, 1, BlockPlanks.EnumType.BIRCH.func_176839_a())); list.add(new ItemStack(itemIn, 1, BlockPlanks.EnumType.JUNGLE.func_176839_a())); }