solderer recipe for storage
This commit is contained in:
@@ -340,45 +340,10 @@ public class CommonProxy
|
|||||||
);
|
);
|
||||||
|
|
||||||
// Storage Blocks
|
// Storage Blocks
|
||||||
GameRegistry.addRecipe(ItemBlockStorage.initNBT(new ItemStack(StorageCraftBlocks.STORAGE, 1, EnumStorageType.TYPE_1K.getId())),
|
SoldererRegistry.addRecipe(new SoldererRecipeStorage(EnumStorageType.TYPE_1K, ItemStoragePart.TYPE_1K));
|
||||||
"EPE",
|
SoldererRegistry.addRecipe(new SoldererRecipeStorage(EnumStorageType.TYPE_4K, ItemStoragePart.TYPE_4K));
|
||||||
"RMR",
|
SoldererRegistry.addRecipe(new SoldererRecipeStorage(EnumStorageType.TYPE_16K, ItemStoragePart.TYPE_16K));
|
||||||
"EEE",
|
SoldererRegistry.addRecipe(new SoldererRecipeStorage(EnumStorageType.TYPE_64K, ItemStoragePart.TYPE_64K));
|
||||||
'R', new ItemStack(Items.redstone),
|
|
||||||
'P', new ItemStack(StorageCraftItems.STORAGE_PART, 1, ItemStoragePart.TYPE_1K),
|
|
||||||
'E', new ItemStack(StorageCraftItems.QUARTZ_ENRICHED_IRON),
|
|
||||||
'M', new ItemStack(StorageCraftBlocks.MACHINE_CASING)
|
|
||||||
);
|
|
||||||
|
|
||||||
GameRegistry.addRecipe(ItemBlockStorage.initNBT(new ItemStack(StorageCraftBlocks.STORAGE, 1, EnumStorageType.TYPE_4K.getId())),
|
|
||||||
"EPE",
|
|
||||||
"RMR",
|
|
||||||
"EEE",
|
|
||||||
'R', new ItemStack(Items.redstone),
|
|
||||||
'P', new ItemStack(StorageCraftItems.STORAGE_PART, 1, ItemStoragePart.TYPE_4K),
|
|
||||||
'E', new ItemStack(StorageCraftItems.QUARTZ_ENRICHED_IRON),
|
|
||||||
'M', new ItemStack(StorageCraftBlocks.MACHINE_CASING)
|
|
||||||
);
|
|
||||||
|
|
||||||
GameRegistry.addRecipe(ItemBlockStorage.initNBT(new ItemStack(StorageCraftBlocks.STORAGE, 1, EnumStorageType.TYPE_16K.getId())),
|
|
||||||
"EPE",
|
|
||||||
"RMR",
|
|
||||||
"EEE",
|
|
||||||
'R', new ItemStack(Items.redstone),
|
|
||||||
'P', new ItemStack(StorageCraftItems.STORAGE_PART, 1, ItemStoragePart.TYPE_16K),
|
|
||||||
'E', new ItemStack(StorageCraftItems.QUARTZ_ENRICHED_IRON),
|
|
||||||
'M', new ItemStack(StorageCraftBlocks.MACHINE_CASING)
|
|
||||||
);
|
|
||||||
|
|
||||||
GameRegistry.addRecipe(ItemBlockStorage.initNBT(new ItemStack(StorageCraftBlocks.STORAGE, 1, EnumStorageType.TYPE_64K.getId())),
|
|
||||||
"EPE",
|
|
||||||
"RMR",
|
|
||||||
"EEE",
|
|
||||||
'R', new ItemStack(Items.redstone),
|
|
||||||
'P', new ItemStack(StorageCraftItems.STORAGE_PART, 1, ItemStoragePart.TYPE_64K),
|
|
||||||
'E', new ItemStack(StorageCraftItems.QUARTZ_ENRICHED_IRON),
|
|
||||||
'M', new ItemStack(StorageCraftBlocks.MACHINE_CASING)
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void init(FMLInitializationEvent e)
|
public void init(FMLInitializationEvent e)
|
||||||
|
|||||||
@@ -7,7 +7,6 @@ public class CellStorage extends NBTStorage
|
|||||||
{
|
{
|
||||||
public CellStorage(ItemStack cell)
|
public CellStorage(ItemStack cell)
|
||||||
{
|
{
|
||||||
// @TODO: Priority on this stuff
|
|
||||||
super(cell.getTagCompound(), getCapacity(cell), 0);
|
super(cell.getTagCompound(), getCapacity(cell), 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,51 @@
|
|||||||
|
package storagecraft.tile.solderer;
|
||||||
|
|
||||||
|
import net.minecraft.item.ItemStack;
|
||||||
|
import storagecraft.StorageCraftBlocks;
|
||||||
|
import storagecraft.StorageCraftItems;
|
||||||
|
import storagecraft.block.EnumStorageType;
|
||||||
|
import storagecraft.item.ItemBlockStorage;
|
||||||
|
import storagecraft.item.ItemProcessor;
|
||||||
|
|
||||||
|
public class SoldererRecipeStorage implements ISoldererRecipe
|
||||||
|
{
|
||||||
|
private EnumStorageType type;
|
||||||
|
private int storagePart;
|
||||||
|
|
||||||
|
public SoldererRecipeStorage(EnumStorageType type, int storagePart)
|
||||||
|
{
|
||||||
|
this.type = type;
|
||||||
|
this.storagePart = storagePart;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ItemStack getRow(int row)
|
||||||
|
{
|
||||||
|
if (row == 0)
|
||||||
|
{
|
||||||
|
return new ItemStack(StorageCraftItems.STORAGE_PART, 1, storagePart);
|
||||||
|
}
|
||||||
|
else if (row == 1)
|
||||||
|
{
|
||||||
|
return new ItemStack(StorageCraftBlocks.MACHINE_CASING);
|
||||||
|
}
|
||||||
|
else if (row == 2)
|
||||||
|
{
|
||||||
|
return new ItemStack(StorageCraftItems.PROCESSOR, 1, ItemProcessor.TYPE_ADVANCED);
|
||||||
|
}
|
||||||
|
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ItemStack getResult()
|
||||||
|
{
|
||||||
|
return ItemBlockStorage.initNBT(new ItemStack(StorageCraftBlocks.STORAGE, 1, type.getId()));
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int getDuration()
|
||||||
|
{
|
||||||
|
return 200;
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user