2019-06-28 17:55:20 -04:00
|
|
|
CLASS net/minecraft/class_1011 net/minecraft/client/texture/NativeImage
|
2019-11-25 15:12:08 -05:00
|
|
|
FIELD field_21684 LOGGER Lorg/apache/logging/log4j/Logger;
|
2021-08-31 15:40:12 -04:00
|
|
|
FIELD field_32031 ALPHA_OFFSET I
|
|
|
|
COMMENT The bit offset of the alpha data in the {@linkplain Format#RGBA RGBA} format.
|
|
|
|
COMMENT Is {@value}. Notice the alpha data in {@linkplain Format#LUMINANCE_ALPHA
|
|
|
|
COMMENT luminance-alpha} format has a different offset of {@code 8}.
|
|
|
|
FIELD field_32032 BLUE_OFFSET I
|
|
|
|
COMMENT The bit offset of the blue data in the {@linkplain Format#RGBA RGBA} or the
|
|
|
|
COMMENT {@linkplain Format#RGB RGB} formats. Is {@value}.
|
|
|
|
FIELD field_32033 GREEN_OFFSET I
|
|
|
|
COMMENT The bit offset of the green data in the {@linkplain Format#RGBA RGBA} or the
|
|
|
|
COMMENT {@linkplain Format#RGB RGB} formats. Is {@value}.
|
|
|
|
FIELD field_32034 RED_OFFSET I
|
|
|
|
COMMENT The bit offset of the red data in the {@linkplain Format#RGBA RGBA} or the
|
|
|
|
COMMENT {@linkplain Format#RGB RGB} formats. Is {@value}.
|
2019-06-28 17:55:20 -04:00
|
|
|
FIELD field_4986 format Lnet/minecraft/class_1011$class_1012;
|
2019-11-21 14:13:18 -05:00
|
|
|
FIELD field_4987 sizeBytes J
|
2019-06-28 17:55:20 -04:00
|
|
|
FIELD field_4988 pointer J
|
|
|
|
FIELD field_4989 height I
|
|
|
|
FIELD field_4990 isStbImage Z
|
|
|
|
FIELD field_4991 width I
|
|
|
|
FIELD field_4992 WRITE_TO_FILE_OPEN_OPTIONS Ljava/util/Set;
|
2019-07-16 14:27:01 -04:00
|
|
|
METHOD <init> (IIZ)V
|
|
|
|
ARG 1 width
|
|
|
|
ARG 2 height
|
|
|
|
ARG 3 useStb
|
2019-07-08 12:09:22 -04:00
|
|
|
METHOD <init> (Lnet/minecraft/class_1011$class_1012;IIZ)V
|
2018-12-31 16:37:56 -05:00
|
|
|
ARG 1 format
|
|
|
|
ARG 2 width
|
|
|
|
ARG 3 height
|
2019-07-16 14:27:01 -04:00
|
|
|
ARG 4 useStb
|
2019-07-08 12:09:22 -04:00
|
|
|
METHOD <init> (Lnet/minecraft/class_1011$class_1012;IIZJ)V
|
2019-07-16 14:27:01 -04:00
|
|
|
ARG 1 format
|
2018-11-05 16:09:22 -05:00
|
|
|
ARG 2 width
|
|
|
|
ARG 3 height
|
2019-07-16 14:27:01 -04:00
|
|
|
ARG 4 useStb
|
2018-12-31 16:37:56 -05:00
|
|
|
ARG 5 pointer
|
2019-07-16 14:27:01 -04:00
|
|
|
METHOD method_15990 read (Ljava/lang/String;)Lnet/minecraft/class_1011;
|
|
|
|
ARG 0 dataUri
|
2019-11-07 13:03:04 -05:00
|
|
|
METHOD method_22619 upload (IIIIIIIZZZZ)V
|
|
|
|
ARG 1 level
|
|
|
|
ARG 2 offsetX
|
|
|
|
ARG 3 offsetY
|
|
|
|
ARG 4 unpackSkipPixels
|
|
|
|
ARG 5 unpackSkipRows
|
|
|
|
ARG 6 width
|
|
|
|
ARG 7 height
|
|
|
|
ARG 8 blur
|
|
|
|
ARG 9 clamp
|
|
|
|
ARG 10 mipmap
|
|
|
|
ARG 11 close
|
2020-06-07 11:13:44 -04:00
|
|
|
METHOD method_24030 getAlpha (I)I
|
|
|
|
ARG 0 color
|
2021-08-31 15:40:12 -04:00
|
|
|
METHOD method_24031 packColor (IIII)I
|
|
|
|
COMMENT The resulting color of this operation is stored as RGBA from least to most
|
|
|
|
COMMENT significant bits, or from smallest to biggest bits.
|
2020-06-07 11:13:44 -04:00
|
|
|
ARG 0 alpha
|
|
|
|
ARG 1 blue
|
|
|
|
ARG 2 green
|
|
|
|
ARG 3 red
|
2020-06-15 12:39:58 -04:00
|
|
|
METHOD method_24032 write (Ljava/nio/channels/WritableByteChannel;)Z
|
2021-08-31 15:40:12 -04:00
|
|
|
ARG 1 channel
|
2020-06-07 11:13:44 -04:00
|
|
|
METHOD method_24033 getRed (I)I
|
|
|
|
ARG 0 color
|
|
|
|
METHOD method_24034 getGreen (I)I
|
|
|
|
ARG 0 color
|
|
|
|
METHOD method_24035 getBlue (I)I
|
|
|
|
ARG 0 color
|
2019-11-25 15:12:08 -05:00
|
|
|
METHOD method_24036 getBytes ()[B
|
2021-08-31 15:40:12 -04:00
|
|
|
METHOD method_35620 readDepthComponent (F)V
|
|
|
|
ARG 1 unused
|
|
|
|
METHOD method_35621 setLuminance (IIB)V
|
2021-06-28 10:21:44 -04:00
|
|
|
ARG 1 x
|
|
|
|
ARG 2 y
|
|
|
|
ARG 3 luminance
|
2021-08-31 15:40:12 -04:00
|
|
|
METHOD method_35622 writeTo (Ljava/lang/String;)V
|
|
|
|
ARG 1 path
|
2021-06-28 10:21:44 -04:00
|
|
|
METHOD method_35623 getRed (II)B
|
|
|
|
ARG 1 x
|
|
|
|
ARG 2 y
|
2021-08-31 15:40:12 -04:00
|
|
|
METHOD method_35624 blend (III)V
|
2021-06-28 10:21:44 -04:00
|
|
|
ARG 1 x
|
|
|
|
ARG 2 y
|
|
|
|
ARG 3 color
|
|
|
|
METHOD method_35625 getGreen (II)B
|
|
|
|
ARG 1 x
|
|
|
|
ARG 2 y
|
|
|
|
METHOD method_35626 getBlue (II)B
|
|
|
|
ARG 1 x
|
|
|
|
ARG 2 y
|
2021-08-31 15:40:12 -04:00
|
|
|
METHOD method_35627 drawPixels ()V
|
|
|
|
COMMENT Use {@code upload} to upload this image to GL so it can be used later. This
|
|
|
|
COMMENT method is not used in vanilla, and its side effects are not yet known.
|
2021-06-28 10:21:44 -04:00
|
|
|
METHOD method_36559 isOutOfBounds (II)Z
|
|
|
|
ARG 1 x
|
|
|
|
ARG 2 y
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_4300 resizeSubRectTo (IIIILnet/minecraft/class_1011;)V
|
2019-07-16 14:27:01 -04:00
|
|
|
ARG 1 x
|
|
|
|
ARG 2 y
|
|
|
|
ARG 3 width
|
|
|
|
ARG 4 height
|
|
|
|
ARG 5 targetImage
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_4301 upload (IIIZ)V
|
2019-07-16 14:27:01 -04:00
|
|
|
ARG 1 level
|
2019-11-07 13:03:04 -05:00
|
|
|
ARG 2 offsetX
|
|
|
|
ARG 3 offsetY
|
2020-06-15 12:39:58 -04:00
|
|
|
ARG 4 close
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_4302 untrack ()V
|
2019-07-16 14:27:01 -04:00
|
|
|
METHOD method_4303 read (Lnet/minecraft/class_1011$class_1012;Ljava/nio/ByteBuffer;)Lnet/minecraft/class_1011;
|
2021-06-28 10:21:44 -04:00
|
|
|
ARG 0 format
|
2021-08-31 15:40:12 -04:00
|
|
|
ARG 1 buffer
|
2019-07-16 14:27:01 -04:00
|
|
|
METHOD method_4304 copyRect (IIIIIIZZ)V
|
|
|
|
ARG 1 x
|
|
|
|
ARG 2 y
|
|
|
|
ARG 3 translateX
|
|
|
|
ARG 4 translateY
|
|
|
|
ARG 5 width
|
|
|
|
ARG 6 height
|
|
|
|
ARG 7 flipX
|
|
|
|
ARG 8 flipY
|
2021-08-31 15:40:12 -04:00
|
|
|
METHOD method_4305 setColor (III)V
|
2020-06-07 11:13:44 -04:00
|
|
|
COMMENT Sets the color of a pixel on this native image.
|
2021-08-31 15:40:12 -04:00
|
|
|
COMMENT The color to be set by this method will be in a big-endian (from biggest
|
|
|
|
COMMENT to smallest bits) ABGR format, or little-endian RGBA.
|
2020-06-07 11:13:44 -04:00
|
|
|
COMMENT
|
2021-08-31 15:40:12 -04:00
|
|
|
COMMENT @throws IllegalArgumentException when this native image's format is not
|
|
|
|
COMMENT {@linkplain Format#RGBA little-endian RGBA}, or the coordinate is out-of-bounds
|
2018-11-05 16:09:22 -05:00
|
|
|
ARG 1 x
|
|
|
|
ARG 2 y
|
2019-07-16 14:27:01 -04:00
|
|
|
ARG 3 color
|
2021-08-31 15:40:12 -04:00
|
|
|
COMMENT the color, with red at smallest and alpha at biggest bits
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_4307 getWidth ()I
|
|
|
|
METHOD method_4308 setTextureFilter (ZZ)V
|
2019-07-16 14:27:01 -04:00
|
|
|
ARG 0 blur
|
|
|
|
ARG 1 mipmap
|
|
|
|
METHOD method_4309 read (Ljava/io/InputStream;)Lnet/minecraft/class_1011;
|
2021-08-31 15:40:12 -04:00
|
|
|
ARG 0 stream
|
2019-07-16 14:27:01 -04:00
|
|
|
METHOD method_4310 read (Lnet/minecraft/class_1011$class_1012;Ljava/io/InputStream;)Lnet/minecraft/class_1011;
|
2021-06-28 10:21:44 -04:00
|
|
|
ARG 0 format
|
2021-08-31 15:40:12 -04:00
|
|
|
ARG 1 stream
|
|
|
|
METHOD method_4311 getOpacity (II)B
|
2018-11-09 06:34:44 -05:00
|
|
|
ARG 1 x
|
|
|
|
ARG 2 y
|
2019-09-18 11:17:05 -04:00
|
|
|
METHOD method_4312 upload (IIIIIIIZZ)V
|
2018-12-31 16:37:56 -05:00
|
|
|
ARG 1 level
|
2019-11-07 13:03:04 -05:00
|
|
|
ARG 2 offsetX
|
|
|
|
ARG 3 offsetY
|
2018-12-31 16:37:56 -05:00
|
|
|
ARG 4 unpackSkipPixels
|
|
|
|
ARG 5 unpackSkipRows
|
|
|
|
ARG 6 width
|
|
|
|
ARG 7 height
|
2019-07-16 14:27:01 -04:00
|
|
|
ARG 8 mipmap
|
2019-11-07 13:03:04 -05:00
|
|
|
ARG 9 close
|
2021-08-31 15:40:12 -04:00
|
|
|
METHOD method_4314 writeTo (Ljava/nio/file/Path;)V
|
2020-06-07 11:13:44 -04:00
|
|
|
ARG 1 path
|
2021-08-31 15:40:12 -04:00
|
|
|
METHOD method_4315 getColor (II)I
|
2020-06-07 11:13:44 -04:00
|
|
|
COMMENT Gets the color of a pixel on this native image.
|
2021-08-31 15:40:12 -04:00
|
|
|
COMMENT The color returned by this method will be in a big-endian (from biggest
|
|
|
|
COMMENT to smallest bits) ABGR format, or little-endian RGBA.
|
2020-06-07 11:13:44 -04:00
|
|
|
COMMENT
|
2021-08-31 15:40:12 -04:00
|
|
|
COMMENT @throws IllegalArgumentException when this native image's format is not
|
|
|
|
COMMENT {@linkplain Format#RGBA little-endian RGBA}, or the coordinate is out-of-bounds
|
|
|
|
COMMENT @return the color, with red at smallest and alpha at biggest bits
|
2019-06-28 17:55:20 -04:00
|
|
|
ARG 1 x
|
2019-07-16 14:27:01 -04:00
|
|
|
ARG 2 y
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_4316 makeGlyphBitmapSubpixel (Lorg/lwjgl/stb/STBTTFontinfo;IIIFFFFII)V
|
2018-12-31 16:37:56 -05:00
|
|
|
ARG 1 fontInfo
|
|
|
|
ARG 2 glyphIndex
|
|
|
|
ARG 3 width
|
|
|
|
ARG 4 height
|
|
|
|
ARG 5 scaleX
|
|
|
|
ARG 6 scaleY
|
|
|
|
ARG 7 shiftX
|
|
|
|
ARG 8 shiftY
|
2019-07-16 14:27:01 -04:00
|
|
|
ARG 9 startX
|
|
|
|
ARG 10 startY
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_4317 copyFrom (Lnet/minecraft/class_1011;)V
|
|
|
|
ARG 1 image
|
|
|
|
METHOD method_4318 getFormat ()Lnet/minecraft/class_1011$class_1012;
|
2019-09-01 11:22:10 -04:00
|
|
|
METHOD method_4319 mirrorVertically ()V
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_4320 checkAllocated ()V
|
2019-11-07 13:03:04 -05:00
|
|
|
METHOD method_4321 uploadInternal (IIIIIIIZZZZ)V
|
2019-06-28 17:55:20 -04:00
|
|
|
ARG 1 level
|
2021-05-04 04:46:46 -04:00
|
|
|
ARG 2 offsetX
|
|
|
|
ARG 3 offsetY
|
2019-06-28 17:55:20 -04:00
|
|
|
ARG 4 unpackSkipPixels
|
|
|
|
ARG 5 unpackSkipRows
|
|
|
|
ARG 6 width
|
|
|
|
ARG 7 height
|
2019-07-16 14:27:01 -04:00
|
|
|
ARG 8 blur
|
2019-06-28 17:55:20 -04:00
|
|
|
ARG 9 clamp
|
2019-07-16 14:27:01 -04:00
|
|
|
ARG 10 mipmap
|
2019-11-07 13:03:04 -05:00
|
|
|
ARG 11 close
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_4322 makePixelArray ()[I
|
|
|
|
METHOD method_4323 getHeight ()I
|
2019-07-16 14:27:01 -04:00
|
|
|
METHOD method_4324 read (Ljava/nio/ByteBuffer;)Lnet/minecraft/class_1011;
|
2021-08-31 15:40:12 -04:00
|
|
|
ARG 0 buffer
|
|
|
|
METHOD method_4325 writeTo (Ljava/io/File;)V
|
|
|
|
ARG 1 path
|
2019-07-16 14:27:01 -04:00
|
|
|
METHOD method_4326 fillRect (IIIII)V
|
2018-12-31 16:37:56 -05:00
|
|
|
ARG 1 x
|
|
|
|
ARG 2 y
|
2019-06-28 17:55:20 -04:00
|
|
|
ARG 3 width
|
|
|
|
ARG 4 height
|
2019-07-16 14:27:01 -04:00
|
|
|
ARG 5 color
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_4327 loadFromTextureImage (IZ)V
|
2019-07-16 14:27:01 -04:00
|
|
|
ARG 1 level
|
|
|
|
ARG 2 removeAlpha
|
2019-12-02 08:55:18 -05:00
|
|
|
CLASS class_1012 Format
|
2021-08-31 15:40:12 -04:00
|
|
|
FIELD field_4993 glFormat I
|
2019-12-02 08:55:18 -05:00
|
|
|
FIELD field_4994 channelCount I
|
|
|
|
FIELD field_4996 writeable Z
|
2021-08-31 15:40:12 -04:00
|
|
|
FIELD field_4997 RGBA Lnet/minecraft/class_1011$class_1012;
|
|
|
|
COMMENT The format stores RGBA in little endian order, so it's ABGR from the biggest to
|
|
|
|
COMMENT the smallest bits.
|
2019-12-02 08:55:18 -05:00
|
|
|
FIELD field_4999 hasAlpha Z
|
|
|
|
FIELD field_5000 hasLuminance Z
|
2021-08-31 15:40:12 -04:00
|
|
|
FIELD field_5001 RGB Lnet/minecraft/class_1011$class_1012;
|
|
|
|
COMMENT The format stores RGB in little endian order, so it's BGR from the biggest to
|
|
|
|
COMMENT the smallest bits.
|
|
|
|
FIELD field_5002 LUMINANCE_ALPHA Lnet/minecraft/class_1011$class_1012;
|
|
|
|
COMMENT The format stores luminance and alpha in little endian order, so it's alpha then
|
|
|
|
COMMENT luminance from the biggest to the smallest bits.
|
2019-12-02 08:55:18 -05:00
|
|
|
FIELD field_5003 hasBlue Z
|
|
|
|
FIELD field_5004 hasGreen Z
|
|
|
|
FIELD field_5005 hasRed Z
|
2021-08-31 15:40:12 -04:00
|
|
|
FIELD field_5006 alphaOffset I
|
|
|
|
FIELD field_5007 luminanceOffset I
|
2019-12-02 08:55:18 -05:00
|
|
|
FIELD field_5008 blueOffset I
|
|
|
|
FIELD field_5009 greenOffset I
|
|
|
|
FIELD field_5010 redOffset I
|
|
|
|
METHOD <init> (Ljava/lang/String;IIIZZZZZIIIIIZ)V
|
2021-08-31 15:40:12 -04:00
|
|
|
ARG 3 channelCount
|
2019-12-02 08:55:18 -05:00
|
|
|
ARG 4 glFormat
|
|
|
|
ARG 5 hasRed
|
|
|
|
ARG 6 hasGreen
|
|
|
|
ARG 7 hasBlue
|
|
|
|
ARG 8 hasLuminance
|
|
|
|
ARG 9 hasAlpha
|
|
|
|
ARG 10 redOffset
|
|
|
|
ARG 11 greenOffset
|
|
|
|
ARG 12 blueOffset
|
|
|
|
ARG 13 luminanceOffset
|
|
|
|
ARG 14 alphaOffset
|
|
|
|
ARG 15 writeable
|
2021-04-10 13:09:14 -04:00
|
|
|
METHOD method_35628 hasRed ()Z
|
|
|
|
METHOD method_35629 hasGreen ()Z
|
|
|
|
METHOD method_35630 hasBlue ()Z
|
|
|
|
METHOD method_35631 hasLuminance ()Z
|
|
|
|
METHOD method_35632 getRedOffset ()I
|
|
|
|
METHOD method_35633 getGreenOffset ()I
|
|
|
|
METHOD method_35634 getBlueOffset ()I
|
2021-08-31 15:40:12 -04:00
|
|
|
METHOD method_35635 getLuminanceOffset ()I
|
2021-04-10 13:09:14 -04:00
|
|
|
METHOD method_35636 hasRedChannel ()Z
|
|
|
|
METHOD method_35637 hasGreenChannel ()Z
|
|
|
|
METHOD method_35638 hasBlueChannel ()Z
|
2021-08-31 15:40:12 -04:00
|
|
|
METHOD method_35639 getRedChannelOffset ()I
|
|
|
|
METHOD method_35640 getGreenChannelOffset ()I
|
|
|
|
METHOD method_35641 getBlueChannelOffset ()I
|
|
|
|
METHOD method_4329 hasAlpha ()Z
|
|
|
|
METHOD method_4330 getOpacityChannelOffset ()I
|
|
|
|
COMMENT @apiNote For luminance-alpha format, this would return the luminance offset
|
|
|
|
COMMENT than the alpha offset.
|
|
|
|
METHOD method_4332 getAlphaOffset ()I
|
|
|
|
METHOD method_4333 toGl ()I
|
2019-12-02 08:55:18 -05:00
|
|
|
METHOD method_4335 getChannelCount ()I
|
2021-08-31 15:40:12 -04:00
|
|
|
METHOD method_4336 fromGl (I)Lnet/minecraft/class_1011$class_1012;
|
2019-12-02 08:55:18 -05:00
|
|
|
ARG 0 glFormat
|
|
|
|
METHOD method_4337 hasOpacityChannel ()Z
|
|
|
|
METHOD method_4338 isWriteable ()Z
|
|
|
|
METHOD method_4339 setPackAlignment ()V
|
|
|
|
METHOD method_4340 setUnpackAlignment ()V
|
2021-08-31 15:40:12 -04:00
|
|
|
CLASS class_1013 InternalFormat
|
|
|
|
COMMENT Represents the internal formats sent to {@code glTexImage2D}, representing the
|
|
|
|
COMMENT number of color channels present in an image to prepare.
|
|
|
|
COMMENT
|
|
|
|
COMMENT @see <a href="http://docs.gl/gl4/glTexImage2D#idm2352">Base Internal Formats</a>
|
|
|
|
COMMENT @see com.mojang.blaze3d.platform.TextureUtil#prepareImage(InternalFormat, int, int, int, int)
|
|
|
|
FIELD field_5015 value I
|
2019-12-02 08:55:18 -05:00
|
|
|
METHOD <init> (Ljava/lang/String;II)V
|
2021-08-31 15:40:12 -04:00
|
|
|
ARG 3 value
|
|
|
|
METHOD method_4341 getValue ()I
|
2019-12-02 08:55:18 -05:00
|
|
|
CLASS class_1014 WriteCallback
|
|
|
|
FIELD field_5018 channel Ljava/nio/channels/WritableByteChannel;
|
|
|
|
FIELD field_5019 exception Ljava/io/IOException;
|
2021-08-31 15:40:12 -04:00
|
|
|
METHOD <init> (Ljava/nio/channels/WritableByteChannel;)V
|
|
|
|
ARG 1 channel
|
2019-12-02 08:55:18 -05:00
|
|
|
METHOD invoke (JJI)V
|
|
|
|
ARG 1 context
|
|
|
|
ARG 3 data
|
|
|
|
ARG 5 size
|
|
|
|
METHOD method_4342 throwStoredException ()V
|