Files
MCCustomSkinLoader/Vanilla/Common/src/main/java/customskinloader/mixin/MixinResourceLocation.java
T
ZekerZhayard 73beb4c29e Support 1.21.11 (#359)
* Support 1.21.11

* Update supported versions
2025-12-14 23:23:34 +08:00

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;
}
}
}