예제 #1
0
  /** 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()));
      }
    }
  }
예제 #2
0
 static {
   for (EABlockSlabDraconium.EnumType EABlockSlabDraconium$enumtype : values()) {
     META_LOOKUP[EABlockSlabDraconium$enumtype.getMetadata()] = EABlockSlabDraconium$enumtype;
   }
 }