Class PlayerSkinTexture

All Implemented Interfaces:
AutoCloseable

@Environment(CLIENT) public class PlayerSkinTexture extends ResourceTexture
Mappings:
Namespace Name
official fhw
intermediary net/minecraft/class_1046
named net/minecraft/client/texture/PlayerSkinTexture
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official f Lfhw;f:Lorg/slf4j/Logger;
      intermediary field_5212 Lnet/minecraft/class_1046;field_5212:Lorg/slf4j/Logger;
      named LOGGER Lnet/minecraft/client/texture/PlayerSkinTexture;LOGGER:Lorg/slf4j/Logger;
    • WIDTH

      private static final int WIDTH
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official g Lfhw;g:I
      intermediary field_34017 Lnet/minecraft/class_1046;field_34017:I
      named WIDTH Lnet/minecraft/client/texture/PlayerSkinTexture;WIDTH:I
    • HEIGHT

      private static final int HEIGHT
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official h Lfhw;h:I
      intermediary field_34018 Lnet/minecraft/class_1046;field_34018:I
      named HEIGHT Lnet/minecraft/client/texture/PlayerSkinTexture;HEIGHT:I
    • OLD_HEIGHT

      private static final int OLD_HEIGHT
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official i Lfhw;i:I
      intermediary field_34019 Lnet/minecraft/class_1046;field_34019:I
      named OLD_HEIGHT Lnet/minecraft/client/texture/PlayerSkinTexture;OLD_HEIGHT:I
    • cacheFile

      @Nullable private final @Nullable File cacheFile
      Mappings:
      Namespace Name Mixin selector
      official j Lfhw;j: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

      private final String url
      Mappings:
      Namespace Name Mixin selector
      official k Lfhw;k: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 l Lfhw;l:Z
      intermediary field_20842 Lnet/minecraft/class_1046;field_20842:Z
      named convertLegacy Lnet/minecraft/client/texture/PlayerSkinTexture;convertLegacy:Z
    • loadedCallback

      @Nullable private final @Nullable Runnable loadedCallback
      Mappings:
      Namespace Name Mixin selector
      official m Lfhw;m: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 n Lfhw;n: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 o Lfhw;o: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 @Nullable File cacheFile, String url, Identifier fallbackSkin, boolean convertLegacy, @Nullable @Nullable Runnable callback)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lfhw;<init>(Ljava/io/File;Ljava/lang/String;Laaj;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

      private void onTextureLoaded(NativeImage image)
      Mappings:
      Namespace Name Mixin selector
      official a Lfhw;a(Ldys;)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

      private void uploadTexture(NativeImage image)
      Mappings:
      Namespace Name Mixin selector
      official b Lfhw;b(Ldys;)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

      public void load(ResourceManager manager) throws IOException
      Overrides:
      load in class ResourceTexture
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Lfht;a(Lahu;)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

      @Nullable private @Nullable NativeImage loadTexture(InputStream stream)
      Mappings:
      Namespace Name Mixin selector
      official a Lfhw;a(Ljava/io/InputStream;)Ldys;
      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

      @Nullable private @Nullable NativeImage remapTexture(NativeImage image)
      Mappings:
      Namespace Name Mixin selector
      official c Lfhw;c(Ldys;)Ldys;
      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

      private static void stripColor(NativeImage image, int x1, int y1, int x2, int y2)
      Mappings:
      Namespace Name Mixin selector
      official a Lfhw;a(Ldys;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

      private static void stripAlpha(NativeImage image, int x1, int y1, int x2, int y2)
      Mappings:
      Namespace Name Mixin selector
      official b Lfhw;b(Ldys;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