mirror of
https://github.com/xfl03/MCCustomSkinLoader.git
synced 2026-11-25 04:04:25 +00:00
40 lines
1.1 KiB
Java
40 lines
1.1 KiB
Java
package customskinloader.mixin;
|
|
|
|
import customskinloader.fake.FakeMinecraftProfileTexture;
|
|
import customskinloader.fake.itf.IFakeResourceLocation;
|
|
import net.minecraft.resources.Identifier;
|
|
import net.minecraft.util.ResourceLocation;
|
|
import org.spongepowered.asm.mixin.Mixin;
|
|
|
|
public abstract class MixinResourceLocation {
|
|
@Mixin(ResourceLocation.class)
|
|
public abstract static class V1 implements IFakeResourceLocation {
|
|
private FakeMinecraftProfileTexture texture;
|
|
|
|
@Override
|
|
public FakeMinecraftProfileTexture getTexture() {
|
|
return this.texture;
|
|
}
|
|
|
|
@Override
|
|
public void setTexture(FakeMinecraftProfileTexture texture) {
|
|
this.texture = texture;
|
|
}
|
|
}
|
|
|
|
@Mixin(Identifier.class)
|
|
public abstract static class V2 implements IFakeResourceLocation {
|
|
private FakeMinecraftProfileTexture texture;
|
|
|
|
@Override
|
|
public FakeMinecraftProfileTexture getTexture() {
|
|
return this.texture;
|
|
}
|
|
|
|
@Override
|
|
public void setTexture(FakeMinecraftProfileTexture texture) {
|
|
this.texture = texture;
|
|
}
|
|
}
|
|
}
|