mirror of
https://github.com/xfl03/MCCustomSkinLoader.git
synced 2026-11-28 21:38:49 +00:00
* Fix elytra can not be rendered when the cape doesn't contain elytra. * Fix typo. * Streamline IFakeThreadDownloadImageData. * Fix wrong arguments. * Add compatible with other custom player model mods, such as tr7zw/FirstPersonModel
24 lines
710 B
Java
24 lines
710 B
Java
package customskinloader.mixin;
|
|
|
|
import java.awt.image.BufferedImage;
|
|
|
|
import customskinloader.fake.itf.IFakeThreadDownloadImageData;
|
|
import net.minecraft.client.renderer.ThreadDownloadImageData;
|
|
import org.spongepowered.asm.mixin.Mixin;
|
|
import org.spongepowered.asm.mixin.Shadow;
|
|
|
|
@Mixin(ThreadDownloadImageData.class) // This mixin is only for 1.12.2-
|
|
public abstract class MixinThreadDownloadImageDataV1 implements IFakeThreadDownloadImageData {
|
|
@Shadow
|
|
private BufferedImage bufferedImage;
|
|
|
|
@Shadow
|
|
private boolean textureUploaded;
|
|
|
|
@Override
|
|
public void resetNewBufferedImage(BufferedImage image) {
|
|
this.textureUploaded = false;
|
|
this.bufferedImage = image;
|
|
}
|
|
}
|