Disable Metallurgy compat

This commit is contained in:
Tom Elfring committed 2017-05-28 11:51:00 +02:00
1 parent d7f8b1c0ab
commit 66e885474c
6 files changed
+68 -207

No files matched your search

@@ -1,12 +0,0 @@
package rebelkeithy.mods.metallurgy.api;
import java.util.Map;
public interface IMetalSet
{
public IOreInfo getOreInfo(int metadata);
public IOreInfo getOreInfo(String name);
public Map<String, IOreInfo> getOreList();
}
@@ -1,43 +0,0 @@
package rebelkeithy.mods.metallurgy.api;
import net.minecraft.item.ItemStack;
public interface IOreInfo
{
// Returns an array of OreDictionary keys of the dusts the make this if it's
// an alloy
// if it's not an alloy, this returns null
public String[] getAlloyRecipe();
public ItemStack getBlock();
public ItemStack getBrick();
// If this ore drops something other than itself, this returns the ItemStack
// of the drop, otherwise returns null
public ItemStack getDrop();
public int getDropAmountMax();
public int getDropAmountMin();
// Returns the itemstack of dust this ore crushes into, if no dust exists,
// returns null
public ItemStack getDust();
// Returns the itemstack of ingot for this ore, if no ingot exists, returns
// null
public ItemStack getIngot();
public String getName();
public ItemStack getOre();
public OreType getType();
public boolean isEnabled();
public int getBlockHarvestLevel();
public int getToolHarvestLevel();
}
@@ -1,56 +0,0 @@
package rebelkeithy.mods.metallurgy.api;
import java.lang.reflect.Field;
public class MetallurgyAPI
{
// Values for name: "base", "precious", "nether", "fantasy", "ender",
// "utility", "vanilla"
public static IMetalSet getMetalSet(String name)
{
try
{
String className = "rebelkeithy.mods.metallurgy.metals.MetallurgyMetals";
if (name.equals("vanilla"))
{
className = "rebelkeithy.mods.metallurgy.vanilla.MetallurgyVanilla";
}
final Class<?> metallurgyMetals = Class.forName(className);
final Field set = metallurgyMetals.getField(name + "Set");
return (IMetalSet) set.get(null);
} catch (final NoSuchFieldException e)
{
// TODO Auto-generated catch block
e.printStackTrace();
} catch (final SecurityException e)
{
// TODO Auto-generated catch block
e.printStackTrace();
} catch (final ClassNotFoundException e)
{
// TODO Auto-generated catch block
e.printStackTrace();
} catch (final IllegalArgumentException e)
{
// TODO Auto-generated catch block
e.printStackTrace();
} catch (final IllegalAccessException e)
{
// TODO Auto-generated catch block
e.printStackTrace();
}
return null;
}
public static String[] getMetalSetNames()
{
// TODO maybe put something to get runtime list here
final String[] names =
{ "base", "precious", "nether", "fantasy", "ender", "utility", "vanilla" };
return names;
}
}
@@ -1,19 +0,0 @@
package rebelkeithy.mods.metallurgy.api;
public enum OreType
{
ORE(true), CATALYST(true), ALLOY(false), RESPAWN(true), DROP(true);
private boolean generates;
OreType(boolean generates)
{
this.generates = generates;
}
public boolean generates()
{
return generates;
}
}