mirror of
https://github.com/xfl03/MCCustomSkinLoader.git
synced 2026-11-25 23:54:23 +00:00
23 lines
755 B
Java
23 lines
755 B
Java
package customskinloader.fake.texture;
|
|
|
|
import customskinloader.fake.FakeMinecraftProfileTexture;
|
|
import net.minecraft.util.ResourceLocation;
|
|
|
|
public class FakeResourceLocation extends ResourceLocation {
|
|
public static FakeResourceLocation create(ResourceLocation location, FakeMinecraftProfileTexture texture) {
|
|
String[] s = location.toString().split(":", 2);
|
|
return new FakeResourceLocation(s[0], s[1], texture);
|
|
}
|
|
|
|
private final FakeMinecraftProfileTexture texture;
|
|
|
|
public FakeResourceLocation(String domain, String path, FakeMinecraftProfileTexture texture) {
|
|
super(domain, path);
|
|
this.texture = texture;
|
|
}
|
|
|
|
public FakeMinecraftProfileTexture getTexture() {
|
|
return this.texture;
|
|
}
|
|
}
|