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
- Mappings:
Namespace Name named net/minecraft/client/texture/PlayerSkinTexture
intermediary net/minecraft/class_1046
official gop
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.texture.ResourceTexture
ResourceTexture.TextureData
-
Field Summary
Modifier and TypeFieldDescriptionprivate final boolean
private static final int
private boolean
private @Nullable CompletableFuture
<?> private static final Logger
private static final int
private final String
private static final int
Fields inherited from class net.minecraft.client.texture.ResourceTexture
location
Fields inherited from class net.minecraft.client.texture.AbstractTexture
bilinear, DEFAULT_ID, glId, mipmap
-
Constructor Summary
ConstructorDescriptionPlayerSkinTexture
(@Nullable File cacheFile, String url, Identifier fallbackSkin, boolean convertLegacy, @Nullable Runnable callback) -
Method Summary
Modifier and TypeMethodDescriptionvoid
load
(ResourceManager manager) private @Nullable NativeImage
loadTexture
(InputStream stream) private void
onTextureLoaded
(NativeImage image) private @Nullable 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 named LOGGER
Lnet/minecraft/client/texture/PlayerSkinTexture;LOGGER:Lorg/slf4j/Logger;
intermediary field_5212
Lnet/minecraft/class_1046;field_5212:Lorg/slf4j/Logger;
official f
Lgop;f:Lorg/slf4j/Logger;
-
WIDTH
private static final int WIDTH- See Also:
- Mappings:
Namespace Name Mixin selector named WIDTH
Lnet/minecraft/client/texture/PlayerSkinTexture;WIDTH:I
intermediary field_34017
Lnet/minecraft/class_1046;field_34017:I
official g
Lgop;g:I
-
HEIGHT
private static final int HEIGHT- See Also:
- Mappings:
Namespace Name Mixin selector named HEIGHT
Lnet/minecraft/client/texture/PlayerSkinTexture;HEIGHT:I
intermediary field_34018
Lnet/minecraft/class_1046;field_34018:I
official h
Lgop;h:I
-
OLD_HEIGHT
private static final int OLD_HEIGHT- See Also:
- Mappings:
Namespace Name Mixin selector named OLD_HEIGHT
Lnet/minecraft/client/texture/PlayerSkinTexture;OLD_HEIGHT:I
intermediary field_34019
Lnet/minecraft/class_1046;field_34019:I
official i
Lgop;i:I
-
cacheFile
- Mappings:
Namespace Name Mixin selector named cacheFile
Lnet/minecraft/client/texture/PlayerSkinTexture;cacheFile:Ljava/io/File;
intermediary field_5210
Lnet/minecraft/class_1046;field_5210:Ljava/io/File;
official j
Lgop;j:Ljava/io/File;
-
url
- Mappings:
Namespace Name Mixin selector named url
Lnet/minecraft/client/texture/PlayerSkinTexture;url:Ljava/lang/String;
intermediary field_5214
Lnet/minecraft/class_1046;field_5214:Ljava/lang/String;
official k
Lgop;k:Ljava/lang/String;
-
convertLegacy
private final boolean convertLegacy- Mappings:
Namespace Name Mixin selector named convertLegacy
Lnet/minecraft/client/texture/PlayerSkinTexture;convertLegacy:Z
intermediary field_20842
Lnet/minecraft/class_1046;field_20842:Z
official l
Lgop;l:Z
-
loadedCallback
- Mappings:
Namespace Name Mixin selector named loadedCallback
Lnet/minecraft/client/texture/PlayerSkinTexture;loadedCallback:Ljava/lang/Runnable;
intermediary field_20843
Lnet/minecraft/class_1046;field_20843:Ljava/lang/Runnable;
official m
Lgop;m:Ljava/lang/Runnable;
-
loader
- Mappings:
Namespace Name Mixin selector named loader
Lnet/minecraft/client/texture/PlayerSkinTexture;loader:Ljava/util/concurrent/CompletableFuture;
intermediary field_20844
Lnet/minecraft/class_1046;field_20844:Ljava/util/concurrent/CompletableFuture;
official n
Lgop;n:Ljava/util/concurrent/CompletableFuture;
-
loaded
private boolean loaded- Mappings:
Namespace Name Mixin selector named loaded
Lnet/minecraft/client/texture/PlayerSkinTexture;loaded:Z
intermediary field_5215
Lnet/minecraft/class_1046;field_5215:Z
official o
Lgop;o: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 named <init>
Lnet/minecraft/client/texture/PlayerSkinTexture;<init>(Ljava/io/File;Ljava/lang/String;Lnet/minecraft/util/Identifier;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
official <init>
Lgop;<init>(Ljava/io/File;Ljava/lang/String;Lalf;ZLjava/lang/Runnable;)V
-
-
Method Details
-
onTextureLoaded
- Mappings:
Namespace Name Mixin selector named onTextureLoaded
Lnet/minecraft/client/texture/PlayerSkinTexture;onTextureLoaded(Lnet/minecraft/client/texture/NativeImage;)V
intermediary method_4534
Lnet/minecraft/class_1046;method_4534(Lnet/minecraft/class_1011;)V
official a
Lgop;a(Lezb;)V
-
uploadTexture
- Mappings:
Namespace Name Mixin selector named uploadTexture
Lnet/minecraft/client/texture/PlayerSkinTexture;uploadTexture(Lnet/minecraft/client/texture/NativeImage;)V
intermediary method_4531
Lnet/minecraft/class_1046;method_4531(Lnet/minecraft/class_1011;)V
official b
Lgop;b(Lezb;)V
-
load
- Overrides:
load
in classResourceTexture
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector named load
Lnet/minecraft/client/texture/AbstractTexture;load(Lnet/minecraft/resource/ResourceManager;)V
intermediary method_4625
Lnet/minecraft/class_1044;method_4625(Lnet/minecraft/class_3300;)V
official a
Lgom;a(Laup;)V
-
loadTexture
- Mappings:
Namespace Name Mixin selector named loadTexture
Lnet/minecraft/client/texture/PlayerSkinTexture;loadTexture(Ljava/io/InputStream;)Lnet/minecraft/client/texture/NativeImage;
intermediary method_22795
Lnet/minecraft/class_1046;method_22795(Ljava/io/InputStream;)Lnet/minecraft/class_1011;
official a
Lgop;a(Ljava/io/InputStream;)Lezb;
-
remapTexture
- Mappings:
Namespace Name Mixin selector named remapTexture
Lnet/minecraft/client/texture/PlayerSkinTexture;remapTexture(Lnet/minecraft/client/texture/NativeImage;)Lnet/minecraft/client/texture/NativeImage;
intermediary method_22798
Lnet/minecraft/class_1046;method_22798(Lnet/minecraft/class_1011;)Lnet/minecraft/class_1011;
official c
Lgop;c(Lezb;)Lezb;
-
stripColor
- Mappings:
Namespace Name Mixin selector named stripColor
Lnet/minecraft/client/texture/PlayerSkinTexture;stripColor(Lnet/minecraft/client/texture/NativeImage;IIII)V
intermediary method_22794
Lnet/minecraft/class_1046;method_22794(Lnet/minecraft/class_1011;IIII)V
official a
Lgop;a(Lezb;IIII)V
-
stripAlpha
- Mappings:
Namespace Name Mixin selector named stripAlpha
Lnet/minecraft/client/texture/PlayerSkinTexture;stripAlpha(Lnet/minecraft/client/texture/NativeImage;IIII)V
intermediary method_22796
Lnet/minecraft/class_1046;method_22796(Lnet/minecraft/class_1011;IIII)V
official b
Lgop;b(Lezb;IIII)V
-