예제 #1
0
 @SuppressWarnings({"rawtypes", "unchecked"})
 @Override
 @SideOnly(Side.CLIENT)
 public void getSubBlocks(int id, CreativeTabs tab, List itemList) {
   for (final BlockType blockType : BlockType.values())
     itemList.add(new ItemStack(this, 1, blockType.metadata()));
 }
예제 #2
0
 @SuppressWarnings({"rawtypes", "unchecked"})
 @Override
 public void addCreativeItems(ArrayList itemList) {
   for (final BlockType blockType : BlockType.values())
     itemList.add(new ItemStack(this, 1, blockType.metadata()));
 }