mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-26 16:58:34 +01:00
Rewrote Crusher Recipes
This commit is contained in:
parent
e25c6c80dd
commit
21646c9c68
9 changed files with 11 additions and 0 deletions
|
@ -26,6 +26,7 @@ import net.minecraftforge.oredict.ShapelessOreRecipe;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|
||||||
|
|
||||||
public class PageCrafting extends BookletPage{
|
public class PageCrafting extends BookletPage{
|
||||||
|
|
||||||
private final IRecipe[] recipes;
|
private final IRecipe[] recipes;
|
||||||
|
|
|
@ -19,6 +19,7 @@ import ellpeck.actuallyadditions.util.Util;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
import net.minecraft.util.EnumChatFormatting;
|
import net.minecraft.util.EnumChatFormatting;
|
||||||
|
|
||||||
|
|
||||||
public class PageCrusherRecipe extends BookletPage{
|
public class PageCrusherRecipe extends BookletPage{
|
||||||
|
|
||||||
public CrusherRecipeRegistry.CrusherRecipe recipe;
|
public CrusherRecipeRegistry.CrusherRecipe recipe;
|
||||||
|
|
|
@ -21,6 +21,7 @@ import net.minecraft.potion.PotionEffect;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
|
||||||
public class InterModCommunications{
|
public class InterModCommunications{
|
||||||
|
|
||||||
public static void processIMC(List<FMLInterModComms.IMCMessage> messages){
|
public static void processIMC(List<FMLInterModComms.IMCMessage> messages){
|
||||||
|
|
|
@ -134,6 +134,7 @@ public enum ConfigCrafting{
|
||||||
COAL("Coal -> Coal Dust", ConfigCategories.CRUSHER_RECIPES, "Crusher"),
|
COAL("Coal -> Coal Dust", ConfigCategories.CRUSHER_RECIPES, "Crusher"),
|
||||||
COAL_ORE("Coal Ore -> Coal", ConfigCategories.CRUSHER_RECIPES, "Crusher"),
|
COAL_ORE("Coal Ore -> Coal", ConfigCategories.CRUSHER_RECIPES, "Crusher"),
|
||||||
COAL_BLOCKS("Coal Block -> Coal Dust", ConfigCategories.CRUSHER_RECIPES, "Crusher"),
|
COAL_BLOCKS("Coal Block -> Coal Dust", ConfigCategories.CRUSHER_RECIPES, "Crusher"),
|
||||||
|
QUARTZ_ORE("Quartz Ore -> Quartz", ConfigCategories.CRUSHER_RECIPES, "Crusher"),
|
||||||
COBBLESTONE("Cobblestone -> Sand", ConfigCategories.CRUSHER_RECIPES, "Crusher"),
|
COBBLESTONE("Cobblestone -> Sand", ConfigCategories.CRUSHER_RECIPES, "Crusher"),
|
||||||
GRAVEL("Gravel -> Flint", ConfigCategories.CRUSHER_RECIPES, "Crusher"),
|
GRAVEL("Gravel -> Flint", ConfigCategories.CRUSHER_RECIPES, "Crusher"),
|
||||||
STONE("Stone -> Cobblestone", ConfigCategories.CRUSHER_RECIPES, "Crusher"),
|
STONE("Stone -> Cobblestone", ConfigCategories.CRUSHER_RECIPES, "Crusher"),
|
||||||
|
|
|
@ -34,6 +34,9 @@ public class CrusherCrafting{
|
||||||
if(ConfigCrafting.COAL_BLOCKS.isEnabled()){
|
if(ConfigCrafting.COAL_BLOCKS.isEnabled()){
|
||||||
CrusherRecipeRegistry.addRecipe("blockCoal", "coal", 9);
|
CrusherRecipeRegistry.addRecipe("blockCoal", "coal", 9);
|
||||||
}
|
}
|
||||||
|
if(ConfigCrafting.QUARTZ_ORE.isEnabled()){
|
||||||
|
CrusherRecipeRegistry.addRecipe("oreQuartz", "gemQuartz", 3);
|
||||||
|
}
|
||||||
|
|
||||||
if(ConfigCrafting.COBBLESTONE.isEnabled()){
|
if(ConfigCrafting.COBBLESTONE.isEnabled()){
|
||||||
CrusherRecipeRegistry.addRecipe("cobblestone", "sand", 1);
|
CrusherRecipeRegistry.addRecipe("cobblestone", "sand", 1);
|
||||||
|
|
|
@ -21,6 +21,7 @@ import net.minecraft.inventory.Container;
|
||||||
import net.minecraft.inventory.Slot;
|
import net.minecraft.inventory.Slot;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
|
|
||||||
|
|
||||||
@InventoryContainer
|
@InventoryContainer
|
||||||
public class ContainerGrinder extends Container{
|
public class ContainerGrinder extends Container{
|
||||||
|
|
||||||
|
|
|
@ -18,6 +18,7 @@ import net.minecraftforge.oredict.OreDictionary;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|
||||||
|
|
||||||
public class CrusherRecipeRegistry{
|
public class CrusherRecipeRegistry{
|
||||||
|
|
||||||
public static ArrayList<CrusherRecipe> recipes = new ArrayList<CrusherRecipe>();
|
public static ArrayList<CrusherRecipe> recipes = new ArrayList<CrusherRecipe>();
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
|
|
||||||
package ellpeck.actuallyadditions.tile;
|
package ellpeck.actuallyadditions.tile;
|
||||||
|
|
||||||
|
|
||||||
import cofh.api.energy.EnergyStorage;
|
import cofh.api.energy.EnergyStorage;
|
||||||
import cofh.api.energy.IEnergyReceiver;
|
import cofh.api.energy.IEnergyReceiver;
|
||||||
import cpw.mods.fml.relauncher.Side;
|
import cpw.mods.fml.relauncher.Side;
|
||||||
|
|
|
@ -19,6 +19,7 @@ import net.minecraft.nbt.NBTTagList;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
|
||||||
public class ItemUtil{
|
public class ItemUtil{
|
||||||
|
|
||||||
public static Item getItemFromName(String name){
|
public static Item getItemFromName(String name){
|
||||||
|
|
Loading…
Reference in a new issue