pattern grid recipe

This commit is contained in:
Raoul Van den Berge
2016-02-03 23:35:22 +01:00
parent 483280c7a1
commit 41e53e2187
2 changed files with 44 additions and 0 deletions

View File

@@ -171,6 +171,9 @@ public class CommonProxy
// Crafting Grid // Crafting Grid
SoldererRegistry.addRecipe(new SoldererRecipeCraftingGrid()); SoldererRegistry.addRecipe(new SoldererRecipeCraftingGrid());
// Pattern Grid
SoldererRegistry.addRecipe(new SoldererRecipePatternGrid());
// Wireless Transmitter // Wireless Transmitter
GameRegistry.addRecipe(new ItemStack(StorageCraftBlocks.WIRELESS_TRANSMITTER), GameRegistry.addRecipe(new ItemStack(StorageCraftBlocks.WIRELESS_TRANSMITTER),
"EPE", "EPE",

View File

@@ -0,0 +1,41 @@
package storagecraft.tile.solderer;
import net.minecraft.item.ItemStack;
import storagecraft.StorageCraftBlocks;
import storagecraft.StorageCraftItems;
import storagecraft.block.EnumGridType;
import storagecraft.item.ItemProcessor;
public class SoldererRecipePatternGrid implements ISoldererRecipe
{
@Override
public ItemStack getRow(int row)
{
if (row == 0)
{
return new ItemStack(StorageCraftItems.PROCESSOR, 1, ItemProcessor.TYPE_ADVANCED);
}
else if (row == 1)
{
return new ItemStack(StorageCraftBlocks.GRID, 1, 0);
}
else if (row == 2)
{
return new ItemStack(StorageCraftItems.PATTERN);
}
return null;
}
@Override
public ItemStack getResult()
{
return new ItemStack(StorageCraftBlocks.GRID, 1, EnumGridType.PATTERN.getId());
}
@Override
public int getDuration()
{
return 500;
}
}