Implemented Lightning Rod, improved ore dictionary integration for dusts, nuggets and plates. Plates now registers automatically for every gem and ingot in TR. (#673)

This commit is contained in:
Dragon2488 2016-07-16 16:44:54 +07:00 committed by Modmuss50
parent ddb96d58ec
commit 33df1d3319
16 changed files with 288 additions and 368 deletions

View file

@ -9,6 +9,16 @@ import net.minecraftforge.oredict.OreDictionary;
public class OreDictUtils
{
public static String toFirstLower(String string) {
if(string == null || string.isEmpty()) return string;
return Character.toLowerCase(string.charAt(0)) + string.substring(1);
}
public static String toFirstUpper(String string) {
if(string.isEmpty()) return string;
return Character.toUpperCase(string.charAt(0)) + string.substring(1);
}
public static boolean isOre(Block block, String oreName)
{
return isOre(new ItemStack(Item.getItemFromBlock(block)), oreName);

View file

@ -1,18 +1,11 @@
package techreborn.utils;
import net.minecraft.item.ItemStack;
import techreborn.init.ModItems;
import techreborn.items.DynamicCell;
public class RecipeUtils
{
public static ItemStack getEmptyCell(int stackSize)
{ // TODO ic2
// if (Loader.isModLoaded("IC2")) {
// ItemStack cell = IC2Items.getItem("cell").copy();
// cell.stackSize = stackSize;
// return cell;
// } else {
return new ItemStack(ModItems.emptyCell);
// }
public static ItemStack getEmptyCell(int stackSize) {
return DynamicCell.getEmptyCell(stackSize);
}
}

View file

@ -22,7 +22,6 @@ public class StackWIPHandler
public StackWIPHandler()
{
wipBlocks.add(ModBlocks.LightningRod);
wipBlocks.add(ModBlocks.MagicalAbsorber);
wipBlocks.add(ModBlocks.ChunkLoader);
wipBlocks.add(ModBlocks.ElectricCraftingTable);