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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue