/** returns a list of blocks with the same ID, but different meta (eg: wood returns 4 blocks) */
  @SideOnly(Side.CLIENT)
  public void getSubBlocks(Item itemIn, CreativeTabs tab, List<ItemStack> list) {
    if (itemIn != Item.getItemFromBlock(InitBlocksEA.double_draconium_slab)) {
      for (EABlockSlabDraconium.EnumType EABlockSlabDraconium$enumtype :
          EABlockSlabDraconium.EnumType.values()) {

        list.add(new ItemStack(itemIn, 1, EABlockSlabDraconium$enumtype.getMetadata()));
      }
    }
  }
 public Comparable<?> getTypeForItem(ItemStack stack) {
   return EABlockSlabDraconium.EnumType.byMetadata(
       stack.getMetadata()
           &
           // 7
           0);
 }
  /** Convert the given metadata into a BlockState for this Block */
  public IBlockState getStateFromMeta(int meta) {
    IBlockState iblockstate =
        this.getDefaultState()
            .withProperty(
                VARIANT,
                EABlockSlabDraconium.EnumType.byMetadata(
                    meta
                        &
                        // 7
                        0));

    if (this.isDouble()) {
      iblockstate = iblockstate.withProperty(SEAMLESS, Boolean.valueOf((meta & 8) != 0));
    } else {
      iblockstate =
          iblockstate.withProperty(
              HALF,
              (meta & 8) == 0
                  ? EABlockSlabDraconium.EnumBlockHalf.BOTTOM
                  : EABlockSlabDraconium.EnumBlockHalf.TOP);
    }

    return iblockstate;
  }
 static {
   for (EABlockSlabDraconium.EnumType EABlockSlabDraconium$enumtype : values()) {
     META_LOOKUP[EABlockSlabDraconium$enumtype.getMetadata()] = EABlockSlabDraconium$enumtype;
   }
 }