Creative item cleanup
This commit is contained in:
parent
25cc47ab2a
commit
787d00217c
|
@ -184,6 +184,7 @@ public class BlockIronChest extends BlockContainer implements ITextureProvider {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings({ "rawtypes", "unchecked" })
|
||||||
@Override
|
@Override
|
||||||
public void addCreativeItems(ArrayList itemList) {
|
public void addCreativeItems(ArrayList itemList) {
|
||||||
for (IronChestType type : IronChestType.values()) {
|
for (IronChestType type : IronChestType.values()) {
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
package cpw.mods.ironchest;
|
package cpw.mods.ironchest;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
|
||||||
import net.minecraft.src.ItemBlock;
|
import net.minecraft.src.ItemBlock;
|
||||||
import net.minecraft.src.ItemStack;
|
import net.minecraft.src.ItemStack;
|
||||||
|
|
||||||
|
@ -23,4 +25,8 @@ public class ItemIronChest extends ItemBlock {
|
||||||
public String getItemNameIS(ItemStack itemstack) {
|
public String getItemNameIS(ItemStack itemstack) {
|
||||||
return IronChestType.values()[itemstack.getItemDamage()].name();
|
return IronChestType.values()[itemstack.getItemDamage()].name();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void addCreativeItems(@SuppressWarnings("rawtypes") ArrayList itemList) {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue