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:
parent
ddb96d58ec
commit
33df1d3319
16 changed files with 288 additions and 368 deletions
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue