net.minecraft.util

public record PngMetadata

net.minecraft.util.PngInfo
net.minecraft.class_8800
net.minecraft.util.PngMetadata

Field summary

Modifier and TypeField
private final int
width
comp_1965
width
private final int
height
comp_1966
height
private final byte
bitDepth
comp_1_1849
bitDepth
private final byte
colorType
comp_1_1850
colorType
private static final HexFormat
FORMAT
field_55543
HEX_FORMAT
private static final int
PNG_HEADER_SIZE
field_1_10513
field_1_10513
private static final long
PNG_HEADER
field_46201
PNG_SIGNATURE
private static final int
PNG_CHUNK_HEADER_SIZE
field_1_10511
field_1_10511
private static final int
PNG_CHUNK_TRAILER_SIZE
field_1_10512
field_1_10512
private static final int
IHDR_TYPE
field_46202
IHDR_CHUNK_TYPE
private static final int
IHDR_SIZE
field_46203
IHDR_CHUNK_LENGTH
private static final byte
COLOR_TYPE_GRAYSCALE
field_1_10506
field_1_10506
private static final byte
COLOR_TYPE_TRUECOLOR
field_1_10509
field_1_10509
private static final byte
COLOR_TYPE_INDEXED
field_1_10508
field_1_10508
private static final byte
COLOR_TYPE_GRAYSCALE_ALPHA
field_1_10507
field_1_10507
private static final byte
COLOR_TYPE_TRUECOLOR_ALPHA
field_1_10510
field_1_10510

Constructor summary

ModifierConstructor
public (int width, int height, byte bitDepth, byte colorType)

Method summary

Modifier and TypeMethod
public static PngMetadata
fromStream(InputStream inputStream)
method_53877(InputStream arg0)
fromStream(InputStream stream)
public static PngMetadata
fromBytes(byte[] bytes)
method_53878(byte[] arg0)
fromBytes(byte[] bytes)
public static void
validateHeader(ByteBuffer buffer)
method_54945(ByteBuffer arg0)
validate(ByteBuffer buf)
private static boolean
validateBitDepth(int bitDepth)
method_1_10447(int arg0)
method_1_10447(int arg0)
private static boolean
validateColorType(int colorType)
method_1_10449(int arg0)
method_1_10449(int arg0)
private static boolean
validateBounds(int width, int height, byte bitDepth, byte colorType)
method_1_10448(int arg0, int arg1, byte arg2, byte arg3)
method_1_10448(int arg0, int arg1, byte arg2, byte arg3)
public int
width()
comp_1965()
width()
public int
height()
comp_1966()
height()
public byte
bitDepth()
comp_1_1849()
bitDepth()
public byte
colorType()
comp_1_1850()
colorType()