storage cells + drives

This commit is contained in:
Raoul Van den Berge
2015-12-12 21:22:01 +01:00
parent 9cb06025b1
commit 8e443e5fd9
19 changed files with 396 additions and 38 deletions

View File

@@ -0,0 +1,26 @@
package storagecraft.item;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import storagecraft.SC;
public class ItemSC extends Item {
private String name;
public ItemSC(String name) {
this.name = name;
setCreativeTab(SC.TAB);
setTextureName("storagecraft:" + name);
}
@Override
public String getUnlocalizedName() {
return "item." + SC.ID + ":" + name;
}
@Override
public String getUnlocalizedName(ItemStack stack) {
return getUnlocalizedName();
}
}

View File

@@ -0,0 +1,9 @@
package storagecraft.item;
public class ItemStorageCell extends ItemSC {
public ItemStorageCell() {
super("storageCell");
setMaxStackSize(1);
}
}