Some work on common ore recipes/emc
This commit is contained in:
parent
2914f15051
commit
6e6dfac1f6
3 changed files with 141 additions and 21 deletions
|
@ -11,26 +11,8 @@ public class AddonEmcValues
|
|||
{
|
||||
|
||||
// TODO Clean up these EmcValues and give them some proper breakdowns
|
||||
private static final EmcValue RUBBER_EMC_VALUE = new EmcValue(24);
|
||||
private static final EmcValue COPPER_EMC_VALUE = new EmcValue(85);
|
||||
private static final EmcValue COPPER_EMC_VALUE = new EmcValue(72);
|
||||
private static final EmcValue TIN_EMC_VALUE = new EmcValue(256);
|
||||
private static final EmcValue IRON_EMC_VALUE = new EmcValue(256);
|
||||
private static final EmcValue SILVER_EMC_VALUE = new EmcValue(512);
|
||||
private static final EmcValue APATITE_EMC_VALUE = new EmcValue(192);
|
||||
private static final EmcValue GOLD_EMC_VALUE = new EmcValue(2048);
|
||||
private static final EmcValue ALUMINIUM_EMC_VALUE = new EmcValue(256);
|
||||
private static final EmcValue LEAD_EMC_VALUE = new EmcValue(1024);
|
||||
private static final EmcValue BRONZE_EMC_VALUE = new EmcValue(256);
|
||||
private static final EmcValue URANIUM_EMC_VALUE = new EmcValue(4096);
|
||||
private static final EmcValue CERTUS_QUARTZ_EMC_VALUE = new EmcValue(256);
|
||||
private static final EmcValue STEEL_EMC_VALUE = new EmcValue(256);
|
||||
private static final EmcValue DIAMOND_EMC_VALUE = new EmcValue(8192);
|
||||
private static final EmcValue COAL_EMC_VALUE = new EmcValue(32);
|
||||
private static final EmcValue CLAY_EMC_VALUE = new EmcValue(64);
|
||||
private static final EmcValue OBSIDIAN_EMC_VALUE = new EmcValue(64);
|
||||
private static final EmcValue LAPIS_EMC_VALUE = new EmcValue(864);
|
||||
private static final EmcValue LITHIUM_EMC_VALUE = new EmcValue(256);
|
||||
private static final EmcValue SULFUR_EMC_VALUE = new EmcValue(256);
|
||||
|
||||
public static void init()
|
||||
{
|
||||
|
@ -38,7 +20,15 @@ public class AddonEmcValues
|
|||
/**
|
||||
* Pre-Value Assignment Mapping
|
||||
*/
|
||||
sendPreValueAssignment(new OreStack("dustCopper"), COPPER_EMC_VALUE);
|
||||
|
||||
/**
|
||||
* Copper
|
||||
*/
|
||||
sendPreValueAssignment(new OreStack("oreCopper"), COPPER_EMC_VALUE);
|
||||
|
||||
/**
|
||||
* Tin
|
||||
*/
|
||||
sendPreValueAssignment(new OreStack("dustTin"), TIN_EMC_VALUE);
|
||||
|
||||
/**
|
||||
|
|
|
@ -25,12 +25,85 @@ public class AddonRecipes
|
|||
public static void init()
|
||||
{
|
||||
// TODO Work on more recipe mappings
|
||||
sendAddRecipe(new OreStack("dustBronze"), new OreStack("dustTin"), new OreStack("dustCopper", 3));
|
||||
|
||||
sendAddRecipe(new OreStack("dustGold"), Item.ingotGold);
|
||||
sendAddRecipe(new OreStack("dustDiamond"), Item.diamond);
|
||||
sendAddRecipe(new OreStack("dustObsidian"), Block.obsidian);
|
||||
sendAddRecipe(new OreStack("dustClay"), new ItemStack(Item.coal, 1, 0));
|
||||
sendAddRecipe(new OreStack("dustCoal"), Item.clay);
|
||||
|
||||
/**
|
||||
* Bronze
|
||||
*/
|
||||
sendAddRecipe(new OreStack("dustBronze"), new OreStack("dustTin"), new OreStack("dustCopper", 3));
|
||||
sendAddRecipe(new OreStack("ingotBronze"), new OreStack("dustBronze"));
|
||||
sendAddRecipe(new OreStack("blockBronze"), new OreStack("ingotBronze", 9));
|
||||
|
||||
/**
|
||||
* Clay
|
||||
*/
|
||||
|
||||
/**
|
||||
* Coal
|
||||
*/
|
||||
|
||||
/**
|
||||
* Copper
|
||||
*/
|
||||
sendAddRecipe(new OreStack("dustCopper"), new OreStack("oreCopper"));
|
||||
sendAddRecipe(new OreStack("dustTinyCopper", 9), new OreStack("dustCopper"));
|
||||
sendAddRecipe(new OreStack("crushedCopper"), new OreStack("dustCopper"));
|
||||
sendAddRecipe(new OreStack("crushedPurifiedCopper"), new OreStack("crushedCopper"));
|
||||
sendAddRecipe(new OreStack("ingotCopper"), new OreStack("dustCopper"));
|
||||
sendAddRecipe(new OreStack("plateCopper"), new OreStack("ingotCopper"));
|
||||
sendAddRecipe(new OreStack("blockCopper"), new OreStack("ingotCopper", 9));
|
||||
sendAddRecipe(new OreStack("plateDenseCopper"), new OreStack("ingotCopper", 9));
|
||||
|
||||
/**
|
||||
* Diamond
|
||||
*/
|
||||
|
||||
/**
|
||||
* Gold
|
||||
*/
|
||||
|
||||
/**
|
||||
* Iron
|
||||
*/
|
||||
|
||||
/**
|
||||
* Lapis
|
||||
*/
|
||||
|
||||
/**
|
||||
* Lead
|
||||
*/
|
||||
|
||||
/**
|
||||
* Lithium
|
||||
*/
|
||||
|
||||
/**
|
||||
* Obsidian
|
||||
*/
|
||||
|
||||
/**
|
||||
* Silver
|
||||
*/
|
||||
|
||||
/**
|
||||
* Sulfur
|
||||
*/
|
||||
|
||||
/**
|
||||
* Tin
|
||||
*/
|
||||
|
||||
/**
|
||||
* Uranium
|
||||
*/
|
||||
|
||||
|
||||
}
|
||||
|
||||
private static void sendAddRecipe(Object outputObject, Object ... inputObjects)
|
||||
|
|
57
src/main/java/com/pahimar/ee3/core/helper/DebugHelper.java
Normal file
57
src/main/java/com/pahimar/ee3/core/helper/DebugHelper.java
Normal file
|
@ -0,0 +1,57 @@
|
|||
package com.pahimar.ee3.core.helper;
|
||||
|
||||
import com.pahimar.ee3.emc.EmcRegistry;
|
||||
import com.pahimar.ee3.item.OreStack;
|
||||
import com.pahimar.ee3.item.WrappedStack;
|
||||
import com.pahimar.ee3.item.crafting.RecipeRegistry;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraftforge.oredict.OreDictionary;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
public class DebugHelper {
|
||||
|
||||
public static void printOreDictionaryContents()
|
||||
{
|
||||
List<String> oreNames = Arrays.asList(OreDictionary.getOreNames());
|
||||
Collections.sort(oreNames);
|
||||
|
||||
for (String oreName : oreNames)
|
||||
{
|
||||
for (ItemStack itemStack : OreDictionary.getOres(oreName))
|
||||
{
|
||||
LogHelper.debug(String.format("%s: %s", oreName, ItemHelper.toString(itemStack)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static void printOreStacksWithoutEmcValues()
|
||||
{
|
||||
List<String> oreNames = Arrays.asList(OreDictionary.getOreNames());
|
||||
Collections.sort(oreNames);
|
||||
|
||||
for (String oreName : oreNames)
|
||||
{
|
||||
if (!EmcRegistry.hasEmcValue(new OreStack(oreName))) {
|
||||
LogHelper.debug(String.format("OreStack '%s' requires an EmcValue", oreName));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static void printRecipeRegistryContents()
|
||||
{
|
||||
List<WrappedStack> outputStacks = new ArrayList<WrappedStack>(RecipeRegistry.getInstance().getRecipeMappings().keySet());
|
||||
Collections.sort(outputStacks);
|
||||
|
||||
for (WrappedStack outputStack : outputStacks)
|
||||
{
|
||||
for (List<WrappedStack> inputStacks : RecipeRegistry.getInstance().getRecipeMappings().get(outputStack))
|
||||
{
|
||||
LogHelper.debug(String.format("%s <--- %s", outputStack, inputStacks));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue