From 221c2f0fe81430e7dd4087e5f5845bd7c62ec56d Mon Sep 17 00:00:00 2001 From: Draknyte1 Date: Wed, 7 Sep 2016 16:36:25 +1000 Subject: % Refactored the entire project to stop using MiscUtils everywhere possible, now it's gtPlusPlus. --- src/Java/gtPlusPlus/core/util/wrapper/var.java | 67 ++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 src/Java/gtPlusPlus/core/util/wrapper/var.java (limited to 'src/Java/gtPlusPlus/core/util/wrapper') diff --git a/src/Java/gtPlusPlus/core/util/wrapper/var.java b/src/Java/gtPlusPlus/core/util/wrapper/var.java new file mode 100644 index 0000000000..d5e55bd658 --- /dev/null +++ b/src/Java/gtPlusPlus/core/util/wrapper/var.java @@ -0,0 +1,67 @@ +package gtPlusPlus.core.util.wrapper; + +import gtPlusPlus.core.lib.LoadedMods; +import gtPlusPlus.core.util.Utils; +import gtPlusPlus.core.util.item.UtilsItems; +import net.minecraft.item.ItemStack; + +public class var{ + + private ItemStack temp = null; + private String sanitizedName; + private String fqrn; + + public var(String o){ + String t = sanitize('<', o); + String t2 = sanitize('>', t); + sanitizedName = t2; + o = sanitize('"', t2); + fqrn = o; + } + + private String sanitize(char token, String input){ + for (int i=0;i