/** returns a list of block with the same ID, but different meta (eg: wood returns 4 block) */ @Override @SideOnly(Side.CLIENT) public void getSubBlocks(Item itemIn, CreativeTabs tab, List list) { EnumType[] aenumtype = EnumType.values(); int i = aenumtype.length; for (int j = 0; j < i; ++j) { EnumType enumtype = aenumtype[j]; list.add(new ItemStack(itemIn, 1, enumtype.getMetadata())); } }
public void getSubBlocks(Item itemIn, CreativeTabs tab, List list) { for (EnumType i : EnumType.values()) { list.add(new ItemStack(itemIn, 1, i.getMetadata())); } }