diff options
Diffstat (limited to 'src/Java/binnie/core/resource/BinnieResource.java')
-rw-r--r-- | src/Java/binnie/core/resource/BinnieResource.java | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/src/Java/binnie/core/resource/BinnieResource.java b/src/Java/binnie/core/resource/BinnieResource.java new file mode 100644 index 0000000000..d9c3d54a0a --- /dev/null +++ b/src/Java/binnie/core/resource/BinnieResource.java @@ -0,0 +1,38 @@ +package binnie.core.resource; + +import binnie.core.AbstractMod; +import net.minecraft.util.ResourceLocation; + +public class BinnieResource +{ + String mod; + private ResourceType type; + String path; + + public BinnieResource(AbstractMod mod, ResourceType type, String path) + { + this(mod.getModID(), type, path); + } + + public BinnieResource(String modid, ResourceType type, String path) + { + this.mod = modid; + this.type = type; + this.path = path; + } + + public String getFullPath() + { + return "/assets/" + this.mod + "/textures/" + this.type.toString() + "/" + this.path; + } + + public ResourceLocation getResourceLocation() + { + return new ResourceLocation(this.mod, "textures/" + this.type.toString() + "/" + this.path); + } + + public String getShortPath() + { + return "textures/" + this.type.toString() + "/" + this.path; + } +} |