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 erl
intermediary net/minecraft/class_1046
named 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 File
cacheFile
private boolean
convertLegacy
private boolean
loaded
private Runnable
loadedCallback
private CompletableFuture<?>
loader
private static Logger
LOGGER
private String
url
Fields inherited from class net.minecraft.client.texture.ResourceTexture
location
Fields inherited from class net.minecraft.client.texture.AbstractTexture
bilinear, glId, mipmap
-
Constructor Summary
Constructors Constructor Description PlayerSkinTexture(File cacheFile, String url, Identifier fallbackSkin, boolean convertLegacy, Runnable callback)
-
Method Summary
Modifier and Type Method Description void
load(ResourceManager manager)
private NativeImage
loadTexture(InputStream stream)
private void
onTextureLoaded(NativeImage image)
private static NativeImage
remapTexture(NativeImage image)
private static void
stripAlpha(NativeImage image, int x1, int y1, int x2, int y2)
private static void
stripColor(NativeImage image, int x1, int y1, int x2, int y2)
private void
uploadTexture(NativeImage image)
Methods inherited from class net.minecraft.client.texture.ResourceTexture
loadTextureData
Methods inherited from class net.minecraft.client.texture.AbstractTexture
bindTexture, clearGlId, close, getGlId, registerTexture, setFilter
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official e
Lerl;e:Lorg/apache/logging/log4j/Logger;
intermediary field_5212
Lnet/minecraft/class_1046;field_5212:Lorg/apache/logging/log4j/Logger;
named LOGGER
Lnet/minecraft/client/texture/PlayerSkinTexture;LOGGER:Lorg/apache/logging/log4j/Logger;
-
cacheFile
- Mappings:
Namespace Name Mixin selector official f
Lerl;f:Ljava/io/File;
intermediary field_5210
Lnet/minecraft/class_1046;field_5210:Ljava/io/File;
named cacheFile
Lnet/minecraft/client/texture/PlayerSkinTexture;cacheFile:Ljava/io/File;
-
url
- Mappings:
Namespace Name Mixin selector official g
Lerl;g:Ljava/lang/String;
intermediary field_5214
Lnet/minecraft/class_1046;field_5214:Ljava/lang/String;
named url
Lnet/minecraft/client/texture/PlayerSkinTexture;url:Ljava/lang/String;
-
convertLegacy
private final boolean convertLegacy- Mappings:
Namespace Name Mixin selector official h
Lerl;h:Z
intermediary field_20842
Lnet/minecraft/class_1046;field_20842:Z
named convertLegacy
Lnet/minecraft/client/texture/PlayerSkinTexture;convertLegacy:Z
-
loadedCallback
- Mappings:
Namespace Name Mixin selector official i
Lerl;i:Ljava/lang/Runnable;
intermediary field_20843
Lnet/minecraft/class_1046;field_20843:Ljava/lang/Runnable;
named loadedCallback
Lnet/minecraft/client/texture/PlayerSkinTexture;loadedCallback:Ljava/lang/Runnable;
-
loader
- Mappings:
Namespace Name Mixin selector official j
Lerl;j:Ljava/util/concurrent/CompletableFuture;
intermediary field_20844
Lnet/minecraft/class_1046;field_20844:Ljava/util/concurrent/CompletableFuture;
named loader
Lnet/minecraft/client/texture/PlayerSkinTexture;loader:Ljava/util/concurrent/CompletableFuture;
-
loaded
private boolean loaded- Mappings:
Namespace Name Mixin selector official k
Lerl;k:Z
intermediary field_5215
Lnet/minecraft/class_1046;field_5215:Z
named loaded
Lnet/minecraft/client/texture/PlayerSkinTexture;loaded:Z
-
-
Constructor Details
-
PlayerSkinTexture
public PlayerSkinTexture(@Nullable File cacheFile, String url, Identifier fallbackSkin, boolean convertLegacy, @Nullable Runnable callback)- Mappings:
Namespace Name Mixin selector official <init>
Lerl;<init>(Ljava/io/File;Ljava/lang/String;Lwb;ZLjava/lang/Runnable;)V
intermediary <init>
Lnet/minecraft/class_1046;<init>(Ljava/io/File;Ljava/lang/String;Lnet/minecraft/class_2960;ZLjava/lang/Runnable;)V
named <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 a
Lerl;a(Ldky;)V
intermediary method_4534
Lnet/minecraft/class_1046;method_4534(Lnet/minecraft/class_1011;)V
named onTextureLoaded
Lnet/minecraft/client/texture/PlayerSkinTexture;onTextureLoaded(Lnet/minecraft/client/texture/NativeImage;)V
-
uploadTexture
- Mappings:
Namespace Name Mixin selector official b
Lerl;b(Ldky;)V
intermediary method_4531
Lnet/minecraft/class_1046;method_4531(Lnet/minecraft/class_1011;)V
named uploadTexture
Lnet/minecraft/client/texture/PlayerSkinTexture;uploadTexture(Lnet/minecraft/client/texture/NativeImage;)V
-
load
- Overrides:
load
in classResourceTexture
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official a
Leri;a(Lacx;)V
intermediary method_4625
Lnet/minecraft/class_1044;method_4625(Lnet/minecraft/class_3300;)V
named load
Lnet/minecraft/client/texture/AbstractTexture;load(Lnet/minecraft/resource/ResourceManager;)V
-
loadTexture
- Mappings:
Namespace Name Mixin selector official a
Lerl;a(Ljava/io/InputStream;)Ldky;
intermediary method_22795
Lnet/minecraft/class_1046;method_22795(Ljava/io/InputStream;)Lnet/minecraft/class_1011;
named loadTexture
Lnet/minecraft/client/texture/PlayerSkinTexture;loadTexture(Ljava/io/InputStream;)Lnet/minecraft/client/texture/NativeImage;
-
remapTexture
- Mappings:
Namespace Name Mixin selector official c
Lerl;c(Ldky;)Ldky;
intermediary method_22798
Lnet/minecraft/class_1046;method_22798(Lnet/minecraft/class_1011;)Lnet/minecraft/class_1011;
named remapTexture
Lnet/minecraft/client/texture/PlayerSkinTexture;remapTexture(Lnet/minecraft/client/texture/NativeImage;)Lnet/minecraft/client/texture/NativeImage;
-
stripColor
- Mappings:
Namespace Name Mixin selector official a
Lerl;a(Ldky;IIII)V
intermediary method_22794
Lnet/minecraft/class_1046;method_22794(Lnet/minecraft/class_1011;IIII)V
named stripColor
Lnet/minecraft/client/texture/PlayerSkinTexture;stripColor(Lnet/minecraft/client/texture/NativeImage;IIII)V
-
stripAlpha
- Mappings:
Namespace Name Mixin selector official b
Lerl;b(Ldky;IIII)V
intermediary method_22796
Lnet/minecraft/class_1046;method_22796(Lnet/minecraft/class_1011;IIII)V
named stripAlpha
Lnet/minecraft/client/texture/PlayerSkinTexture;stripAlpha(Lnet/minecraft/client/texture/NativeImage;IIII)V
-