Class TextureManager

java.lang.Object
net.minecraft.client.texture.TextureManager

@Environment(CLIENT) public class TextureManager extends Object
Mappings:
Namespace Name
intermediary net/minecraft/class_76
glue class_359
server net/minecraft/class_76
client ji
named net/minecraft/client/texture/TextureManager
  • Field Details

    • field_1245

      public static boolean field_1245
      Mappings:
      Namespace Name Mixin selector
      intermediary field_1245 Lnet/minecraft/class_76;field_1245:Z
      glue field_1440 Lclass_359;field_1440:Z
      server field_1245 Lnet/minecraft/class_76;field_1245:Z
      client a Lji;a:Z
      named field_1245 Lnet/minecraft/client/texture/TextureManager;field_1245:Z
    • textures

      private HashMap textures
      Mappings:
      Namespace Name Mixin selector
      intermediary field_1246 Lnet/minecraft/class_76;field_1246:Ljava/util/HashMap;
      glue field_1441 Lclass_359;field_1441:Ljava/util/HashMap;
      server field_1246 Lnet/minecraft/class_76;field_1246:Ljava/util/HashMap;
      client b Lji;b:Ljava/util/HashMap;
      named textures Lnet/minecraft/client/texture/TextureManager;textures:Ljava/util/HashMap;
    • colorMaps

      private HashMap colorMaps
      Mappings:
      Namespace Name Mixin selector
      intermediary field_1247 Lnet/minecraft/class_76;field_1247:Ljava/util/HashMap;
      glue field_1442 Lclass_359;field_1442:Ljava/util/HashMap;
      server field_1247 Lnet/minecraft/class_76;field_1247:Ljava/util/HashMap;
      client c Lji;c:Ljava/util/HashMap;
      named colorMaps Lnet/minecraft/client/texture/TextureManager;colorMaps:Ljava/util/HashMap;
    • field_1248

      private HashMap field_1248
      Mappings:
      Namespace Name Mixin selector
      intermediary field_1248 Lnet/minecraft/class_76;field_1248:Ljava/util/HashMap;
      glue field_1443 Lclass_359;field_1443:Ljava/util/HashMap;
      server field_1248 Lnet/minecraft/class_76;field_1248:Ljava/util/HashMap;
      client d Lji;d:Ljava/util/HashMap;
      named field_1248 Lnet/minecraft/client/texture/TextureManager;field_1248:Ljava/util/HashMap;
    • field_1249

      private IntBuffer field_1249
      Mappings:
      Namespace Name Mixin selector
      intermediary field_1249 Lnet/minecraft/class_76;field_1249:Ljava/nio/IntBuffer;
      glue field_1444 Lclass_359;field_1444:Ljava/nio/IntBuffer;
      server field_1249 Lnet/minecraft/class_76;field_1249:Ljava/nio/IntBuffer;
      client e Lji;e:Ljava/nio/IntBuffer;
      named field_1249 Lnet/minecraft/client/texture/TextureManager;field_1249:Ljava/nio/IntBuffer;
    • currentImageBuffer

      private ByteBuffer currentImageBuffer
      Mappings:
      Namespace Name Mixin selector
      intermediary field_1250 Lnet/minecraft/class_76;field_1250:Ljava/nio/ByteBuffer;
      glue field_1445 Lclass_359;field_1445:Ljava/nio/ByteBuffer;
      server field_1250 Lnet/minecraft/class_76;field_1250:Ljava/nio/ByteBuffer;
      client f Lji;f:Ljava/nio/ByteBuffer;
      named currentImageBuffer Lnet/minecraft/client/texture/TextureManager;currentImageBuffer:Ljava/nio/ByteBuffer;
    • textureBinders

      private List textureBinders
      Mappings:
      Namespace Name Mixin selector
      intermediary field_1251 Lnet/minecraft/class_76;field_1251:Ljava/util/List;
      glue field_1446 Lclass_359;field_1446:Ljava/util/List;
      server field_1251 Lnet/minecraft/class_76;field_1251:Ljava/util/List;
      client g Lji;g:Ljava/util/List;
      named textureBinders Lnet/minecraft/client/texture/TextureManager;textureBinders:Ljava/util/List;
    • downloadThreads

      private Map downloadThreads
      Mappings:
      Namespace Name Mixin selector
      intermediary field_1252 Lnet/minecraft/class_76;field_1252:Ljava/util/Map;
      glue field_1447 Lclass_359;field_1447:Ljava/util/Map;
      server field_1252 Lnet/minecraft/class_76;field_1252:Ljava/util/Map;
      client h Lji;h:Ljava/util/Map;
      named downloadThreads Lnet/minecraft/client/texture/TextureManager;downloadThreads:Ljava/util/Map;
    • gameOptions

      private GameOptions gameOptions
      Mappings:
      Namespace Name Mixin selector
      intermediary field_1253 Lnet/minecraft/class_76;field_1253:Lnet/minecraft/class_322;
      glue field_1448 Lclass_359;field_1448:Lclass_419;
      server field_1253 Lnet/minecraft/class_76;field_1253:Lnet/minecraft/class_322;
      client i Lji;i:Lkv;
      named gameOptions Lnet/minecraft/client/texture/TextureManager;gameOptions:Lnet/minecraft/client/options/GameOptions;
    • isClampTexture

      private boolean isClampTexture
      Mappings:
      Namespace Name Mixin selector
      intermediary field_1254 Lnet/minecraft/class_76;field_1254:Z
      glue field_1449 Lclass_359;field_1449:Z
      server field_1254 Lnet/minecraft/class_76;field_1254:Z
      client j Lji;j:Z
      named isClampTexture Lnet/minecraft/client/texture/TextureManager;isClampTexture:Z
    • isBlurTexture

      private boolean isBlurTexture
      Mappings:
      Namespace Name Mixin selector
      intermediary field_1255 Lnet/minecraft/class_76;field_1255:Z
      glue field_1450 Lclass_359;field_1450:Z
      server field_1255 Lnet/minecraft/class_76;field_1255:Z
      client k Lji;k:Z
      named isBlurTexture Lnet/minecraft/client/texture/TextureManager;isBlurTexture:Z
    • texturePackManager

      private TexturePackManager texturePackManager
      Mappings:
      Namespace Name Mixin selector
      intermediary field_1256 Lnet/minecraft/class_76;field_1256:Lnet/minecraft/class_303;
      glue field_1451 Lclass_359;field_1451:Lclass_323;
      server field_1256 Lnet/minecraft/class_76;field_1256:Lnet/minecraft/class_303;
      client l Lji;l:Lik;
      named texturePackManager Lnet/minecraft/client/texture/TextureManager;texturePackManager:Lnet/minecraft/client/TexturePackManager;
    • missingTexImage

      private BufferedImage missingTexImage
      Mappings:
      Namespace Name Mixin selector
      intermediary field_1257 Lnet/minecraft/class_76;field_1257:Ljava/awt/image/BufferedImage;
      glue field_1452 Lclass_359;field_1452:Ljava/awt/image/BufferedImage;
      server field_1257 Lnet/minecraft/class_76;field_1257:Ljava/awt/image/BufferedImage;
      client m Lji;m:Ljava/awt/image/BufferedImage;
      named missingTexImage Lnet/minecraft/client/texture/TextureManager;missingTexImage:Ljava/awt/image/BufferedImage;
  • Constructor Details

  • Method Details

    • getColorMap

      public int[] getColorMap(String colorMapPath)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1092 Lnet/minecraft/class_76;method_1092(Ljava/lang/String;)[I
      glue method_1449 Lclass_359;method_1449(Ljava/lang/String;)[I
      server method_1092 Lnet/minecraft/class_76;method_1092(Ljava/lang/String;)[I
      client a Lji;a(Ljava/lang/String;)[I
      named getColorMap Lnet/minecraft/client/texture/TextureManager;getColorMap(Ljava/lang/String;)[I
    • createPixelsArray

      private int[] createPixelsArray(BufferedImage image)
      Creates a new int array using image's width and height, stores image's pixels into it, and returns.
      Parameters:
      image - the image to get pixels from.
      Returns:
      the pixels array.
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1099 Lnet/minecraft/class_76;method_1099(Ljava/awt/image/BufferedImage;)[I
      glue method_1456 Lclass_359;method_1456(Ljava/awt/image/BufferedImage;)[I
      server method_1099 Lnet/minecraft/class_76;method_1099(Ljava/awt/image/BufferedImage;)[I
      client b Lji;b(Ljava/awt/image/BufferedImage;)[I
      named createPixelsArray Lnet/minecraft/client/texture/TextureManager;createPixelsArray(Ljava/awt/image/BufferedImage;)[I
    • imageToPixelsArray

      private int[] imageToPixelsArray(BufferedImage image, int[] pixels)
      Stores image's pixels in the given int array.
      Parameters:
      image - the image to get pixels from.
      pixles - the int array in which the pixels will be written.
      Returns:
      the pixels array.
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1090 Lnet/minecraft/class_76;method_1090(Ljava/awt/image/BufferedImage;[I)[I
      glue method_1447 Lclass_359;method_1447(Ljava/awt/image/BufferedImage;[I)[I
      server method_1090 Lnet/minecraft/class_76;method_1090(Ljava/awt/image/BufferedImage;[I)[I
      client a Lji;a(Ljava/awt/image/BufferedImage;[I)[I
      named imageToPixelsArray Lnet/minecraft/client/texture/TextureManager;imageToPixelsArray(Ljava/awt/image/BufferedImage;[I)[I
    • getTextureId

      public int getTextureId(String texturePath)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1100 Lnet/minecraft/class_76;method_1100(Ljava/lang/String;)I
      glue method_1457 Lclass_359;method_1457(Ljava/lang/String;)I
      server method_1100 Lnet/minecraft/class_76;method_1100(Ljava/lang/String;)I
      client b Lji;b(Ljava/lang/String;)I
      named getTextureId Lnet/minecraft/client/texture/TextureManager;getTextureId(Ljava/lang/String;)I
    • method_1101

      private BufferedImage method_1101(BufferedImage bufferedImage)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1101 Lnet/minecraft/class_76;method_1101(Ljava/awt/image/BufferedImage;)Ljava/awt/image/BufferedImage;
      glue method_1458 Lclass_359;method_1458(Ljava/awt/image/BufferedImage;)Ljava/awt/image/BufferedImage;
      server method_1101 Lnet/minecraft/class_76;method_1101(Ljava/awt/image/BufferedImage;)Ljava/awt/image/BufferedImage;
      client c Lji;c(Ljava/awt/image/BufferedImage;)Ljava/awt/image/BufferedImage;
      named method_1101 Lnet/minecraft/client/texture/TextureManager;method_1101(Ljava/awt/image/BufferedImage;)Ljava/awt/image/BufferedImage;
    • method_1088

      public int method_1088(BufferedImage bufferedImage)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1088 Lnet/minecraft/class_76;method_1088(Ljava/awt/image/BufferedImage;)I
      glue method_1445 Lclass_359;method_1445(Ljava/awt/image/BufferedImage;)I
      server method_1088 Lnet/minecraft/class_76;method_1088(Ljava/awt/image/BufferedImage;)I
      client a Lji;a(Ljava/awt/image/BufferedImage;)I
      named method_1088 Lnet/minecraft/client/texture/TextureManager;method_1088(Ljava/awt/image/BufferedImage;)I
    • bindImageToId

      public void bindImageToId(BufferedImage imageToBind, int targetId)
      Binds the given buffered image to the given texture ID.
      Parameters:
      imageToBind - the buffered image instance.
      textureId - the texture ID to bind the image to.
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1089 Lnet/minecraft/class_76;method_1089(Ljava/awt/image/BufferedImage;I)V
      glue method_1446 Lclass_359;method_1446(Ljava/awt/image/BufferedImage;I)V
      server method_1089 Lnet/minecraft/class_76;method_1089(Ljava/awt/image/BufferedImage;I)V
      client a Lji;a(Ljava/awt/image/BufferedImage;I)V
      named bindImageToId Lnet/minecraft/client/texture/TextureManager;bindImageToId(Ljava/awt/image/BufferedImage;I)V
    • bindImageToId

      public void bindImageToId(int[] pixels, int width, int height, int targetId)
      Binds the given int array of pixels as an image to the given texture ID.
      Parameters:
      pixels - the image pixels in little endian byte order.
      width - the image's width.
      height - the image's height.
      targetId - the texture ID to bind the image to.
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1095 Lnet/minecraft/class_76;method_1095([IIII)V
      glue method_1452 Lclass_359;method_1452([IIII)V
      server method_1095 Lnet/minecraft/class_76;method_1095([IIII)V
      client a Lji;a([IIII)V
      named bindImageToId Lnet/minecraft/client/texture/TextureManager;bindImageToId([IIII)V
    • method_1085

      public void method_1085(int int2)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1085 Lnet/minecraft/class_76;method_1085(I)V
      glue method_1442 Lclass_359;method_1442(I)V
      server method_1085 Lnet/minecraft/class_76;method_1085(I)V
      client a Lji;a(I)V
      named method_1085 Lnet/minecraft/client/texture/TextureManager;method_1085(I)V
    • getOnlineImageOrDefaultTextureId

      public int getOnlineImageOrDefaultTextureId(String skinUrl, String defaultSkin)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1093 Lnet/minecraft/class_76;method_1093(Ljava/lang/String;Ljava/lang/String;)I
      glue method_1450 Lclass_359;method_1450(Ljava/lang/String;Ljava/lang/String;)I
      server method_1093 Lnet/minecraft/class_76;method_1093(Ljava/lang/String;Ljava/lang/String;)I
      client a Lji;a(Ljava/lang/String;Ljava/lang/String;)I
      named getOnlineImageOrDefaultTextureId Lnet/minecraft/client/texture/TextureManager;getOnlineImageOrDefaultTextureId(Ljava/lang/String;Ljava/lang/String;)I
    • getOrCreateImageDownloadThreadFor

      public ImageDownloadThread getOrCreateImageDownloadThreadFor(String imageUrl, ImageProcessor processor)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1094 Lnet/minecraft/class_76;method_1094(Ljava/lang/String;Lnet/minecraft/class_131;)Lnet/minecraft/class_130;
      glue method_1451 Lclass_359;method_1451(Ljava/lang/String;Lclass_516;)Lclass_169;
      server method_1094 Lnet/minecraft/class_76;method_1094(Ljava/lang/String;Lnet/minecraft/class_131;)Lnet/minecraft/class_130;
      client a Lji;a(Ljava/lang/String;Lnf;)Lek;
      named getOrCreateImageDownloadThreadFor Lnet/minecraft/client/texture/TextureManager;getOrCreateImageDownloadThreadFor(Ljava/lang/String;Lnet/minecraft/client/ImageProcessor;)Lnet/minecraft/util/ImageDownloadThread;
    • method_1102

      public void method_1102(String string)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1102 Lnet/minecraft/class_76;method_1102(Ljava/lang/String;)V
      glue method_1459 Lclass_359;method_1459(Ljava/lang/String;)V
      server method_1102 Lnet/minecraft/class_76;method_1102(Ljava/lang/String;)V
      client c Lji;c(Ljava/lang/String;)V
      named method_1102 Lnet/minecraft/client/texture/TextureManager;method_1102(Ljava/lang/String;)V
    • addTextureBinder

      public void addTextureBinder(TextureBinder textureBinder)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1087 Lnet/minecraft/class_76;method_1087(Lnet/minecraft/class_336;)V
      glue method_1444 Lclass_359;method_1444(Lclass_40;)V
      server method_1087 Lnet/minecraft/class_76;method_1087(Lnet/minecraft/class_336;)V
      client a Lji;a(Law;)V
      named addTextureBinder Lnet/minecraft/client/texture/TextureManager;addTextureBinder(Lnet/minecraft/client/render/TextureBinder;)V
    • tick

      public void tick()
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1084 Lnet/minecraft/class_76;method_1084()V
      glue method_1441 Lclass_359;method_1441()V
      server method_1084 Lnet/minecraft/class_76;method_1084()V
      client a Lji;a()V
      named tick Lnet/minecraft/client/texture/TextureManager;tick()V
    • method_1086

      private int method_1086(int int2, int int3)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1086 Lnet/minecraft/class_76;method_1086(II)I
      glue method_1443 Lclass_359;method_1443(II)I
      server method_1086 Lnet/minecraft/class_76;method_1086(II)I
      client a Lji;a(II)I
      named method_1086 Lnet/minecraft/client/texture/TextureManager;method_1086(II)I
    • method_1098

      private int method_1098(int int2, int int3)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1098 Lnet/minecraft/class_76;method_1098(II)I
      glue method_1455 Lclass_359;method_1455(II)I
      server method_1098 Lnet/minecraft/class_76;method_1098(II)I
      client b Lji;b(II)I
      named method_1098 Lnet/minecraft/client/texture/TextureManager;method_1098(II)I
    • reloadTexturesFromTexturePack

      public void reloadTexturesFromTexturePack()
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1096 Lnet/minecraft/class_76;method_1096()V
      glue method_1453 Lclass_359;method_1453()V
      server method_1096 Lnet/minecraft/class_76;method_1096()V
      client b Lji;b()V
      named reloadTexturesFromTexturePack Lnet/minecraft/client/texture/TextureManager;reloadTexturesFromTexturePack()V
    • readImage

      private BufferedImage readImage(InputStream imageInputStream)
      Reads the input stream as an image, closes the stream, and returns the image.
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1091 Lnet/minecraft/class_76;method_1091(Ljava/io/InputStream;)Ljava/awt/image/BufferedImage;
      glue method_1448 Lclass_359;method_1448(Ljava/io/InputStream;)Ljava/awt/image/BufferedImage;
      server method_1091 Lnet/minecraft/class_76;method_1091(Ljava/io/InputStream;)Ljava/awt/image/BufferedImage;
      client a Lji;a(Ljava/io/InputStream;)Ljava/awt/image/BufferedImage;
      named readImage Lnet/minecraft/client/texture/TextureManager;readImage(Ljava/io/InputStream;)Ljava/awt/image/BufferedImage;
    • bindTexture

      public void bindTexture(int textureID)
      Binds the given texture ID if it's greater than 0.
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1097 Lnet/minecraft/class_76;method_1097(I)V
      glue method_1454 Lclass_359;method_1454(I)V
      server method_1097 Lnet/minecraft/class_76;method_1097(I)V
      client b Lji;b(I)V
      named bindTexture Lnet/minecraft/client/texture/TextureManager;bindTexture(I)V