Some performance or memory optimizations
Replaced String concat in loops with StringBuilder (performance) Replaced for with keySet + Map.get() through for with entrySet (perf) Changed inner classes to static classes, mostly struct like (memory)
This commit is contained in:
@@ -13,7 +13,7 @@ public class OreHelper
|
||||
|
||||
public static final OreHelper instance = new OreHelper();
|
||||
|
||||
class ItemRef
|
||||
static class ItemRef
|
||||
{
|
||||
|
||||
ItemRef(ItemStack stack)
|
||||
@@ -51,7 +51,7 @@ public class OreHelper
|
||||
|
||||
}
|
||||
|
||||
class OreResult
|
||||
static class OreResult
|
||||
{
|
||||
|
||||
public OreReference oreValue = null;
|
||||
|
||||
Reference in New Issue
Block a user