Generify
This commit is contained in:
parent
e6354fb483
commit
beb85cf154
18 changed files with 33 additions and 132 deletions
|
@ -55,8 +55,7 @@ public class ItemComponent extends Item {
|
|||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
@SuppressWarnings("unchecked")
|
||||
public void getSubItems(Item id, CreativeTabs creativeTab, List list) {
|
||||
public void getSubItems(Item id, CreativeTabs creativeTab, List<ItemStack> list) {
|
||||
for (int i = 0; i < names.size(); i++)
|
||||
list.add(new ItemStack(id, 1, i));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue