blob: d9c3d54a0a04b27cf69998de480e2d6711e34fc2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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;
}
}
|