diff options
author | Draknyte1 <Draknyte1@hotmail.com> | 2016-07-01 10:41:19 +1000 |
---|---|---|
committer | Draknyte1 <Draknyte1@hotmail.com> | 2016-07-01 10:41:19 +1000 |
commit | 4bcf341fe8ea61e5555d6c9f60d11289d5a18694 (patch) | |
tree | 622f97d5a9b6fb2c70711f58c6567ee048459b95 /src/Java/miscutil/deprecated/ResourceHandler.java | |
parent | 867af762b9a04c6e8456a583d3f4aa1702aabf18 (diff) | |
download | GT5-Unofficial-4bcf341fe8ea61e5555d6c9f60d11289d5a18694.tar.gz GT5-Unofficial-4bcf341fe8ea61e5555d6c9f60d11289d5a18694.tar.bz2 GT5-Unofficial-4bcf341fe8ea61e5555d6c9f60d11289d5a18694.zip |
%Changed the way the Foresty xmod stuff runs in a non-dev situation.
%Improved Growthcraft Booze handling
Diffstat (limited to 'src/Java/miscutil/deprecated/ResourceHandler.java')
-rw-r--r-- | src/Java/miscutil/deprecated/ResourceHandler.java | 83 |
1 files changed, 0 insertions, 83 deletions
diff --git a/src/Java/miscutil/deprecated/ResourceHandler.java b/src/Java/miscutil/deprecated/ResourceHandler.java deleted file mode 100644 index c9604bf923..0000000000 --- a/src/Java/miscutil/deprecated/ResourceHandler.java +++ /dev/null @@ -1,83 +0,0 @@ -package miscutil.deprecated; - -import org.apache.commons.lang3.Validate; - -public class ResourceHandler -{ - private final String resourceDomain; - private final String resourcePath; - private static final String __OBFID = "CL_00001082"; - - public ResourceHandler(String p_i1292_1_, String p_i1292_2_) - { - Validate.notNull(p_i1292_2_); - - if (p_i1292_1_ != null && p_i1292_1_.length() != 0) - { - this.resourceDomain = p_i1292_1_; - } - else - { - this.resourceDomain = "minecraft"; - } - - this.resourcePath = p_i1292_2_; - } - - public ResourceHandler(String p_i1293_1_) - { - String s1 = "miscUtils"; - String s2 = p_i1293_1_; - int i = p_i1293_1_.indexOf(58); - - if (i >= 0) - { - s2 = p_i1293_1_.substring(i + 1, p_i1293_1_.length()); - - if (i > 1) - { - s1 = p_i1293_1_.substring(0, i); - } - } - - this.resourceDomain = s1.toLowerCase(); - this.resourcePath = s2; - } - - public String getResourcePath() - { - return this.resourcePath; - } - - public String getResourceDomain() - { - return this.resourceDomain; - } - - public String toString() - { - return this.resourceDomain + ":" + this.resourcePath; - } - - public boolean equals(Object p_equals_1_) - { - if (this == p_equals_1_) - { - return true; - } - else if (!(p_equals_1_ instanceof ResourceHandler)) - { - return false; - } - else - { - ResourceHandler resourcelocation = (ResourceHandler)p_equals_1_; - return this.resourceDomain.equals(resourcelocation.resourceDomain) && this.resourcePath.equals(resourcelocation.resourcePath); - } - } - - public int hashCode() - { - return 31 * this.resourceDomain.hashCode() + this.resourcePath.hashCode(); - } -}
\ No newline at end of file |