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:
This commit is contained in:
Sturmlilie 2020-06-07 16:21:15 +02:00 committed by GitHub
parent ffd49220ab
commit 0ebbc7b3a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 38 additions and 0 deletions

View File

@ -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