From 0ebbc7b3a13b8218d0172cb402e2c7d2f9a340ff Mon Sep 17 00:00:00 2001 From: Sturmlilie Date: Sun, 7 Jun 2020 16:21:15 +0200 Subject: [PATCH] Map TextureUtil (#1426) * Map TextureUtil * Fixup: Remove unused mappings not picked up by Enigma * Fixup: Properly overload 'allocate' As it turns out, now that the bogus mappings are gone, Enigma will actually let me properly overload This was a learning experience :tiny-potato: --- .../client/texture/TextureUtil.mapping | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/mappings/net/minecraft/client/texture/TextureUtil.mapping b/mappings/net/minecraft/client/texture/TextureUtil.mapping index 57116ad574..43ae2eb2ec 100644 --- a/mappings/net/minecraft/client/texture/TextureUtil.mapping +++ b/mappings/net/minecraft/client/texture/TextureUtil.mapping @@ -1 +1,39 @@ CLASS net/minecraft/class_4536 net/minecraft/client/texture/TextureUtil + FIELD field_22547 LOGGER Lorg/apache/logging/log4j/Logger; + METHOD method_24956 generateId ()I + METHOD method_24957 deleteId (I)V + ARG 0 id + METHOD method_24958 allocate (III)V + ARG 0 id + ARG 1 width + ARG 2 height + METHOD method_24959 allocate (IIII)V + ARG 0 id + ARG 1 maxLevel + ARG 2 width + ARG 3 height + METHOD method_24960 allocate (Lnet/minecraft/class_1011$class_1013;III)V + ARG 0 internalFormat + ARG 1 id + ARG 2 width + ARG 3 height + METHOD method_24961 allocate (Lnet/minecraft/class_1011$class_1013;IIII)V + COMMENT Allocate uninitialized backing memory for {@code maxLevel+1} + COMMENT miplevels to texture {@code id}. + ARG 0 internalFormat + ARG 1 id + ARG 2 maxLevel + ARG 3 width + ARG 4 height + METHOD method_24962 (Ljava/io/InputStream;)Ljava/nio/ByteBuffer; + ARG 0 inputStream + METHOD method_24963 uploadImage (Ljava/nio/IntBuffer;II)V + COMMENT Uploads {@code imageData} to the bound texture. + COMMENT Each integer is interpreted as 0xAARRGGBB. + ARG 0 imageData + ARG 1 width + ARG 2 height + METHOD method_24964 bind (I)V + ARG 0 id + METHOD method_24965 (Ljava/io/InputStream;)Ljava/lang/String; + ARG 0 inputStream