Package net.minecraft.client.texture
Class PlayerSkinTexture
java.lang.Object
net.minecraft.client.texture.AbstractTexture
net.minecraft.client.texture.ResourceTexture
net.minecraft.client.texture.PlayerSkinTexture
- All Implemented Interfaces:
AutoCloseable
@Environment(CLIENT) public class PlayerSkinTexture extends ResourceTexture
- Mappings:
Namespace Name official etfintermediary net/minecraft/class_1046named net/minecraft/client/texture/PlayerSkinTexture
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.texture.ResourceTexture
ResourceTexture.TextureData -
Field Summary
Fields Modifier and Type Field Description private @Nullable FilecacheFileprivate booleanconvertLegacyprivate booleanloadedprivate @Nullable RunnableloadedCallbackprivate @Nullable CompletableFuture<?>loaderprivate static LoggerLOGGERprivate StringurlFields inherited from class net.minecraft.client.texture.ResourceTexture
locationFields inherited from class net.minecraft.client.texture.AbstractTexture
bilinear, glId, mipmap -
Constructor Summary
Constructors Constructor Description PlayerSkinTexture(@Nullable File cacheFile, String url, Identifier fallbackSkin, boolean convertLegacy, @Nullable Runnable callback) -
Method Summary
Modifier and Type Method Description voidload(ResourceManager manager)private @Nullable NativeImageloadTexture(InputStream stream)private voidonTextureLoaded(NativeImage image)private static NativeImageremapTexture(NativeImage image)private static voidstripAlpha(NativeImage image, int x1, int y1, int x2, int y2)private static voidstripColor(NativeImage image, int x1, int y1, int x2, int y2)private voiduploadTexture(NativeImage image)Methods inherited from class net.minecraft.client.texture.ResourceTexture
loadTextureDataMethods inherited from class net.minecraft.client.texture.AbstractTexture
bindTexture, clearGlId, close, getGlId, registerTexture, setFilter
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official eLetf;e:Lorg/apache/logging/log4j/Logger;intermediary field_5212Lnet/minecraft/class_1046;field_5212:Lorg/apache/logging/log4j/Logger;named LOGGERLnet/minecraft/client/texture/PlayerSkinTexture;LOGGER:Lorg/apache/logging/log4j/Logger;
-
cacheFile
- Mappings:
Namespace Name Mixin selector official fLetf;f:Ljava/io/File;intermediary field_5210Lnet/minecraft/class_1046;field_5210:Ljava/io/File;named cacheFileLnet/minecraft/client/texture/PlayerSkinTexture;cacheFile:Ljava/io/File;
-
url
- Mappings:
Namespace Name Mixin selector official gLetf;g:Ljava/lang/String;intermediary field_5214Lnet/minecraft/class_1046;field_5214:Ljava/lang/String;named urlLnet/minecraft/client/texture/PlayerSkinTexture;url:Ljava/lang/String;
-
convertLegacy
private final boolean convertLegacy- Mappings:
Namespace Name Mixin selector official hLetf;h:Zintermediary field_20842Lnet/minecraft/class_1046;field_20842:Znamed convertLegacyLnet/minecraft/client/texture/PlayerSkinTexture;convertLegacy:Z
-
loadedCallback
- Mappings:
Namespace Name Mixin selector official iLetf;i:Ljava/lang/Runnable;intermediary field_20843Lnet/minecraft/class_1046;field_20843:Ljava/lang/Runnable;named loadedCallbackLnet/minecraft/client/texture/PlayerSkinTexture;loadedCallback:Ljava/lang/Runnable;
-
loader
- Mappings:
Namespace Name Mixin selector official jLetf;j:Ljava/util/concurrent/CompletableFuture;intermediary field_20844Lnet/minecraft/class_1046;field_20844:Ljava/util/concurrent/CompletableFuture;named loaderLnet/minecraft/client/texture/PlayerSkinTexture;loader:Ljava/util/concurrent/CompletableFuture;
-
loaded
private boolean loaded- Mappings:
Namespace Name Mixin selector official kLetf;k:Zintermediary field_5215Lnet/minecraft/class_1046;field_5215:Znamed loadedLnet/minecraft/client/texture/PlayerSkinTexture;loaded:Z
-
-
Constructor Details
-
PlayerSkinTexture
public PlayerSkinTexture(@Nullable @Nullable File cacheFile, String url, Identifier fallbackSkin, boolean convertLegacy, @Nullable @Nullable Runnable callback)- Mappings:
Namespace Name Mixin selector official <init>Letf;<init>(Ljava/io/File;Ljava/lang/String;Lwl;ZLjava/lang/Runnable;)Vintermediary <init>Lnet/minecraft/class_1046;<init>(Ljava/io/File;Ljava/lang/String;Lnet/minecraft/class_2960;ZLjava/lang/Runnable;)Vnamed <init>Lnet/minecraft/client/texture/PlayerSkinTexture;<init>(Ljava/io/File;Ljava/lang/String;Lnet/minecraft/util/Identifier;ZLjava/lang/Runnable;)V
-
-
Method Details
-
onTextureLoaded
- Mappings:
Namespace Name Mixin selector official aLetf;a(Ldmq;)Vintermediary method_4534Lnet/minecraft/class_1046;method_4534(Lnet/minecraft/class_1011;)Vnamed onTextureLoadedLnet/minecraft/client/texture/PlayerSkinTexture;onTextureLoaded(Lnet/minecraft/client/texture/NativeImage;)V
-
uploadTexture
- Mappings:
Namespace Name Mixin selector official bLetf;b(Ldmq;)Vintermediary method_4531Lnet/minecraft/class_1046;method_4531(Lnet/minecraft/class_1011;)Vnamed uploadTextureLnet/minecraft/client/texture/PlayerSkinTexture;uploadTexture(Lnet/minecraft/client/texture/NativeImage;)V
-
load
- Overrides:
loadin classResourceTexture- Throws:
IOException- Mappings:
Namespace Name Mixin selector official aLetc;a(Ladh;)Vintermediary method_4625Lnet/minecraft/class_1044;method_4625(Lnet/minecraft/class_3300;)Vnamed loadLnet/minecraft/client/texture/AbstractTexture;load(Lnet/minecraft/resource/ResourceManager;)V
-
loadTexture
- Mappings:
Namespace Name Mixin selector official aLetf;a(Ljava/io/InputStream;)Ldmq;intermediary method_22795Lnet/minecraft/class_1046;method_22795(Ljava/io/InputStream;)Lnet/minecraft/class_1011;named loadTextureLnet/minecraft/client/texture/PlayerSkinTexture;loadTexture(Ljava/io/InputStream;)Lnet/minecraft/client/texture/NativeImage;
-
remapTexture
- Mappings:
Namespace Name Mixin selector official cLetf;c(Ldmq;)Ldmq;intermediary method_22798Lnet/minecraft/class_1046;method_22798(Lnet/minecraft/class_1011;)Lnet/minecraft/class_1011;named remapTextureLnet/minecraft/client/texture/PlayerSkinTexture;remapTexture(Lnet/minecraft/client/texture/NativeImage;)Lnet/minecraft/client/texture/NativeImage;
-
stripColor
- Mappings:
Namespace Name Mixin selector official aLetf;a(Ldmq;IIII)Vintermediary method_22794Lnet/minecraft/class_1046;method_22794(Lnet/minecraft/class_1011;IIII)Vnamed stripColorLnet/minecraft/client/texture/PlayerSkinTexture;stripColor(Lnet/minecraft/client/texture/NativeImage;IIII)V
-
stripAlpha
- Mappings:
Namespace Name Mixin selector official bLetf;b(Ldmq;IIII)Vintermediary method_22796Lnet/minecraft/class_1046;method_22796(Lnet/minecraft/class_1011;IIII)Vnamed stripAlphaLnet/minecraft/client/texture/PlayerSkinTexture;stripAlpha(Lnet/minecraft/client/texture/NativeImage;IIII)V
-