Package net.minecraft.client.texture
Class TextureManager
java.lang.Object
net.minecraft.client.texture.TextureManager
- Mappings:
Namespace Name intermediary net/minecraft/class_76glue class_359server net/minecraft/class_76client jinamed net/minecraft/client/texture/TextureManager
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate HashMapprivate ByteBufferprivate Mapstatic booleanprivate HashMapprivate IntBufferprivate GameOptionsprivate booleanprivate booleanprivate BufferedImageprivate Listprivate TexturePackManagerprivate HashMap -
Constructor Summary
ConstructorsConstructorDescriptionTextureManager(TexturePackManager texturePackManager, GameOptions gameOptions) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTextureBinder(TextureBinder textureBinder) voidbindImageToId(int[] pixels, int width, int height, int targetId) Binds the given int array of pixels as an image to the given texture ID.voidbindImageToId(BufferedImage imageToBind, int targetId) Binds the given buffered image to the given texture ID.voidbindTexture(int textureID) Binds the given texture ID if it's greater than 0.private int[]createPixelsArray(BufferedImage image) Creates a new int array using image's width and height, stores image's pixels into it, and returns.int[]getColorMap(String colorMapPath) intgetOnlineImageOrDefaultTextureId(String skinUrl, String defaultSkin) getOrCreateImageDownloadThreadFor(String imageUrl, ImageProcessor processor) intgetTextureId(String texturePath) private int[]imageToPixelsArray(BufferedImage image, int[] pixels) Stores image's pixels in the given int array.voidmethod_1085(int int2) private intmethod_1086(int int2, int int3) intmethod_1088(BufferedImage bufferedImage) private intmethod_1098(int int2, int int3) private BufferedImagemethod_1101(BufferedImage bufferedImage) voidmethod_1102(String string) private BufferedImagereadImage(InputStream imageInputStream) Reads the input stream as an image, closes the stream, and returns the image.voidvoidtick()
-
Field Details
-
field_1245
public static boolean field_1245- Mappings:
Namespace Name Mixin selector intermediary field_1245Lnet/minecraft/class_76;field_1245:Zglue field_1440Lclass_359;field_1440:Zserver field_1245Lnet/minecraft/class_76;field_1245:Zclient aLji;a:Znamed field_1245Lnet/minecraft/client/texture/TextureManager;field_1245:Z
-
textures
- Mappings:
Namespace Name Mixin selector intermediary field_1246Lnet/minecraft/class_76;field_1246:Ljava/util/HashMap;glue field_1441Lclass_359;field_1441:Ljava/util/HashMap;server field_1246Lnet/minecraft/class_76;field_1246:Ljava/util/HashMap;client bLji;b:Ljava/util/HashMap;named texturesLnet/minecraft/client/texture/TextureManager;textures:Ljava/util/HashMap;
-
colorMaps
- Mappings:
Namespace Name Mixin selector intermediary field_1247Lnet/minecraft/class_76;field_1247:Ljava/util/HashMap;glue field_1442Lclass_359;field_1442:Ljava/util/HashMap;server field_1247Lnet/minecraft/class_76;field_1247:Ljava/util/HashMap;client cLji;c:Ljava/util/HashMap;named colorMapsLnet/minecraft/client/texture/TextureManager;colorMaps:Ljava/util/HashMap;
-
field_1248
- Mappings:
Namespace Name Mixin selector intermediary field_1248Lnet/minecraft/class_76;field_1248:Ljava/util/HashMap;glue field_1443Lclass_359;field_1443:Ljava/util/HashMap;server field_1248Lnet/minecraft/class_76;field_1248:Ljava/util/HashMap;client dLji;d:Ljava/util/HashMap;named field_1248Lnet/minecraft/client/texture/TextureManager;field_1248:Ljava/util/HashMap;
-
field_1249
- Mappings:
Namespace Name Mixin selector intermediary field_1249Lnet/minecraft/class_76;field_1249:Ljava/nio/IntBuffer;glue field_1444Lclass_359;field_1444:Ljava/nio/IntBuffer;server field_1249Lnet/minecraft/class_76;field_1249:Ljava/nio/IntBuffer;client eLji;e:Ljava/nio/IntBuffer;named field_1249Lnet/minecraft/client/texture/TextureManager;field_1249:Ljava/nio/IntBuffer;
-
currentImageBuffer
- Mappings:
Namespace Name Mixin selector intermediary field_1250Lnet/minecraft/class_76;field_1250:Ljava/nio/ByteBuffer;glue field_1445Lclass_359;field_1445:Ljava/nio/ByteBuffer;server field_1250Lnet/minecraft/class_76;field_1250:Ljava/nio/ByteBuffer;client fLji;f:Ljava/nio/ByteBuffer;named currentImageBufferLnet/minecraft/client/texture/TextureManager;currentImageBuffer:Ljava/nio/ByteBuffer;
-
textureBinders
- Mappings:
Namespace Name Mixin selector intermediary field_1251Lnet/minecraft/class_76;field_1251:Ljava/util/List;glue field_1446Lclass_359;field_1446:Ljava/util/List;server field_1251Lnet/minecraft/class_76;field_1251:Ljava/util/List;client gLji;g:Ljava/util/List;named textureBindersLnet/minecraft/client/texture/TextureManager;textureBinders:Ljava/util/List;
-
downloadThreads
- Mappings:
Namespace Name Mixin selector intermediary field_1252Lnet/minecraft/class_76;field_1252:Ljava/util/Map;glue field_1447Lclass_359;field_1447:Ljava/util/Map;server field_1252Lnet/minecraft/class_76;field_1252:Ljava/util/Map;client hLji;h:Ljava/util/Map;named downloadThreadsLnet/minecraft/client/texture/TextureManager;downloadThreads:Ljava/util/Map;
-
gameOptions
- Mappings:
Namespace Name Mixin selector intermediary field_1253Lnet/minecraft/class_76;field_1253:Lnet/minecraft/class_322;glue field_1448Lclass_359;field_1448:Lclass_419;server field_1253Lnet/minecraft/class_76;field_1253:Lnet/minecraft/class_322;client iLji;i:Lkv;named gameOptionsLnet/minecraft/client/texture/TextureManager;gameOptions:Lnet/minecraft/client/options/GameOptions;
-
isClampTexture
private boolean isClampTexture- Mappings:
Namespace Name Mixin selector intermediary field_1254Lnet/minecraft/class_76;field_1254:Zglue field_1449Lclass_359;field_1449:Zserver field_1254Lnet/minecraft/class_76;field_1254:Zclient jLji;j:Znamed isClampTextureLnet/minecraft/client/texture/TextureManager;isClampTexture:Z
-
isBlurTexture
private boolean isBlurTexture- Mappings:
Namespace Name Mixin selector intermediary field_1255Lnet/minecraft/class_76;field_1255:Zglue field_1450Lclass_359;field_1450:Zserver field_1255Lnet/minecraft/class_76;field_1255:Zclient kLji;k:Znamed isBlurTextureLnet/minecraft/client/texture/TextureManager;isBlurTexture:Z
-
texturePackManager
- Mappings:
Namespace Name Mixin selector intermediary field_1256Lnet/minecraft/class_76;field_1256:Lnet/minecraft/class_303;glue field_1451Lclass_359;field_1451:Lclass_323;server field_1256Lnet/minecraft/class_76;field_1256:Lnet/minecraft/class_303;client lLji;l:Lik;named texturePackManagerLnet/minecraft/client/texture/TextureManager;texturePackManager:Lnet/minecraft/client/TexturePackManager;
-
missingTexImage
- Mappings:
Namespace Name Mixin selector intermediary field_1257Lnet/minecraft/class_76;field_1257:Ljava/awt/image/BufferedImage;glue field_1452Lclass_359;field_1452:Ljava/awt/image/BufferedImage;server field_1257Lnet/minecraft/class_76;field_1257:Ljava/awt/image/BufferedImage;client mLji;m:Ljava/awt/image/BufferedImage;named missingTexImageLnet/minecraft/client/texture/TextureManager;missingTexImage:Ljava/awt/image/BufferedImage;
-
-
Constructor Details
-
TextureManager
-
-
Method Details
-
getColorMap
- Mappings:
Namespace Name Mixin selector intermediary method_1092Lnet/minecraft/class_76;method_1092(Ljava/lang/String;)[Iglue method_1449Lclass_359;method_1449(Ljava/lang/String;)[Iserver method_1092Lnet/minecraft/class_76;method_1092(Ljava/lang/String;)[Iclient aLji;a(Ljava/lang/String;)[Inamed getColorMapLnet/minecraft/client/texture/TextureManager;getColorMap(Ljava/lang/String;)[I
-
createPixelsArray
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_1099Lnet/minecraft/class_76;method_1099(Ljava/awt/image/BufferedImage;)[Iglue method_1456Lclass_359;method_1456(Ljava/awt/image/BufferedImage;)[Iserver method_1099Lnet/minecraft/class_76;method_1099(Ljava/awt/image/BufferedImage;)[Iclient bLji;b(Ljava/awt/image/BufferedImage;)[Inamed createPixelsArrayLnet/minecraft/client/texture/TextureManager;createPixelsArray(Ljava/awt/image/BufferedImage;)[I
-
imageToPixelsArray
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_1090Lnet/minecraft/class_76;method_1090(Ljava/awt/image/BufferedImage;[I)[Iglue method_1447Lclass_359;method_1447(Ljava/awt/image/BufferedImage;[I)[Iserver method_1090Lnet/minecraft/class_76;method_1090(Ljava/awt/image/BufferedImage;[I)[Iclient aLji;a(Ljava/awt/image/BufferedImage;[I)[Inamed imageToPixelsArrayLnet/minecraft/client/texture/TextureManager;imageToPixelsArray(Ljava/awt/image/BufferedImage;[I)[I
-
getTextureId
- Mappings:
Namespace Name Mixin selector intermediary method_1100Lnet/minecraft/class_76;method_1100(Ljava/lang/String;)Iglue method_1457Lclass_359;method_1457(Ljava/lang/String;)Iserver method_1100Lnet/minecraft/class_76;method_1100(Ljava/lang/String;)Iclient bLji;b(Ljava/lang/String;)Inamed getTextureIdLnet/minecraft/client/texture/TextureManager;getTextureId(Ljava/lang/String;)I
-
method_1101
- Mappings:
Namespace Name Mixin selector intermediary method_1101Lnet/minecraft/class_76;method_1101(Ljava/awt/image/BufferedImage;)Ljava/awt/image/BufferedImage;glue method_1458Lclass_359;method_1458(Ljava/awt/image/BufferedImage;)Ljava/awt/image/BufferedImage;server method_1101Lnet/minecraft/class_76;method_1101(Ljava/awt/image/BufferedImage;)Ljava/awt/image/BufferedImage;client cLji;c(Ljava/awt/image/BufferedImage;)Ljava/awt/image/BufferedImage;named method_1101Lnet/minecraft/client/texture/TextureManager;method_1101(Ljava/awt/image/BufferedImage;)Ljava/awt/image/BufferedImage;
-
method_1088
- Mappings:
Namespace Name Mixin selector intermediary method_1088Lnet/minecraft/class_76;method_1088(Ljava/awt/image/BufferedImage;)Iglue method_1445Lclass_359;method_1445(Ljava/awt/image/BufferedImage;)Iserver method_1088Lnet/minecraft/class_76;method_1088(Ljava/awt/image/BufferedImage;)Iclient aLji;a(Ljava/awt/image/BufferedImage;)Inamed method_1088Lnet/minecraft/client/texture/TextureManager;method_1088(Ljava/awt/image/BufferedImage;)I
-
bindImageToId
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_1089Lnet/minecraft/class_76;method_1089(Ljava/awt/image/BufferedImage;I)Vglue method_1446Lclass_359;method_1446(Ljava/awt/image/BufferedImage;I)Vserver method_1089Lnet/minecraft/class_76;method_1089(Ljava/awt/image/BufferedImage;I)Vclient aLji;a(Ljava/awt/image/BufferedImage;I)Vnamed bindImageToIdLnet/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_1095Lnet/minecraft/class_76;method_1095([IIII)Vglue method_1452Lclass_359;method_1452([IIII)Vserver method_1095Lnet/minecraft/class_76;method_1095([IIII)Vclient aLji;a([IIII)Vnamed bindImageToIdLnet/minecraft/client/texture/TextureManager;bindImageToId([IIII)V
-
method_1085
public void method_1085(int int2) - Mappings:
Namespace Name Mixin selector intermediary method_1085Lnet/minecraft/class_76;method_1085(I)Vglue method_1442Lclass_359;method_1442(I)Vserver method_1085Lnet/minecraft/class_76;method_1085(I)Vclient aLji;a(I)Vnamed method_1085Lnet/minecraft/client/texture/TextureManager;method_1085(I)V
-
getOnlineImageOrDefaultTextureId
- Mappings:
Namespace Name Mixin selector intermediary method_1093Lnet/minecraft/class_76;method_1093(Ljava/lang/String;Ljava/lang/String;)Iglue method_1450Lclass_359;method_1450(Ljava/lang/String;Ljava/lang/String;)Iserver method_1093Lnet/minecraft/class_76;method_1093(Ljava/lang/String;Ljava/lang/String;)Iclient aLji;a(Ljava/lang/String;Ljava/lang/String;)Inamed getOnlineImageOrDefaultTextureIdLnet/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_1094Lnet/minecraft/class_76;method_1094(Ljava/lang/String;Lnet/minecraft/class_131;)Lnet/minecraft/class_130;glue method_1451Lclass_359;method_1451(Ljava/lang/String;Lclass_516;)Lclass_169;server method_1094Lnet/minecraft/class_76;method_1094(Ljava/lang/String;Lnet/minecraft/class_131;)Lnet/minecraft/class_130;client aLji;a(Ljava/lang/String;Lnf;)Lek;named getOrCreateImageDownloadThreadForLnet/minecraft/client/texture/TextureManager;getOrCreateImageDownloadThreadFor(Ljava/lang/String;Lnet/minecraft/client/ImageProcessor;)Lnet/minecraft/util/ImageDownloadThread;
-
method_1102
- Mappings:
Namespace Name Mixin selector intermediary method_1102Lnet/minecraft/class_76;method_1102(Ljava/lang/String;)Vglue method_1459Lclass_359;method_1459(Ljava/lang/String;)Vserver method_1102Lnet/minecraft/class_76;method_1102(Ljava/lang/String;)Vclient cLji;c(Ljava/lang/String;)Vnamed method_1102Lnet/minecraft/client/texture/TextureManager;method_1102(Ljava/lang/String;)V
-
addTextureBinder
- Mappings:
Namespace Name Mixin selector intermediary method_1087Lnet/minecraft/class_76;method_1087(Lnet/minecraft/class_336;)Vglue method_1444Lclass_359;method_1444(Lclass_40;)Vserver method_1087Lnet/minecraft/class_76;method_1087(Lnet/minecraft/class_336;)Vclient aLji;a(Law;)Vnamed addTextureBinderLnet/minecraft/client/texture/TextureManager;addTextureBinder(Lnet/minecraft/client/render/TextureBinder;)V
-
tick
public void tick()- Mappings:
Namespace Name Mixin selector intermediary method_1084Lnet/minecraft/class_76;method_1084()Vglue method_1441Lclass_359;method_1441()Vserver method_1084Lnet/minecraft/class_76;method_1084()Vclient aLji;a()Vnamed tickLnet/minecraft/client/texture/TextureManager;tick()V
-
method_1086
private int method_1086(int int2, int int3) - Mappings:
Namespace Name Mixin selector intermediary method_1086Lnet/minecraft/class_76;method_1086(II)Iglue method_1443Lclass_359;method_1443(II)Iserver method_1086Lnet/minecraft/class_76;method_1086(II)Iclient aLji;a(II)Inamed method_1086Lnet/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_1098Lnet/minecraft/class_76;method_1098(II)Iglue method_1455Lclass_359;method_1455(II)Iserver method_1098Lnet/minecraft/class_76;method_1098(II)Iclient bLji;b(II)Inamed method_1098Lnet/minecraft/client/texture/TextureManager;method_1098(II)I
-
reloadTexturesFromTexturePack
public void reloadTexturesFromTexturePack()- Mappings:
Namespace Name Mixin selector intermediary method_1096Lnet/minecraft/class_76;method_1096()Vglue method_1453Lclass_359;method_1453()Vserver method_1096Lnet/minecraft/class_76;method_1096()Vclient bLji;b()Vnamed reloadTexturesFromTexturePackLnet/minecraft/client/texture/TextureManager;reloadTexturesFromTexturePack()V
-
readImage
Reads the input stream as an image, closes the stream, and returns the image.- Mappings:
Namespace Name Mixin selector intermediary method_1091Lnet/minecraft/class_76;method_1091(Ljava/io/InputStream;)Ljava/awt/image/BufferedImage;glue method_1448Lclass_359;method_1448(Ljava/io/InputStream;)Ljava/awt/image/BufferedImage;server method_1091Lnet/minecraft/class_76;method_1091(Ljava/io/InputStream;)Ljava/awt/image/BufferedImage;client aLji;a(Ljava/io/InputStream;)Ljava/awt/image/BufferedImage;named readImageLnet/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_1097Lnet/minecraft/class_76;method_1097(I)Vglue method_1454Lclass_359;method_1454(I)Vserver method_1097Lnet/minecraft/class_76;method_1097(I)Vclient bLji;b(I)Vnamed bindTextureLnet/minecraft/client/texture/TextureManager;bindTexture(I)V
-