Esempio n. 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_velious_slab)) {
      for (EABlockSlabVelious.EnumType EABlockSlabVelious$enumtype :
          EABlockSlabVelious.EnumType.values()) {

        list.add(new ItemStack(itemIn, 1, EABlockSlabVelious$enumtype.getMetadata()));
      }
    }
  }
Esempio n. 2
0
 static {
   for (EABlockSlabVelious.EnumType EABlockSlabVelious$enumtype : values()) {
     META_LOOKUP[EABlockSlabVelious$enumtype.getMetadata()] = EABlockSlabVelious$enumtype;
   }
 }