Package net.minecraft.util
Record Class PngMetadata
java.lang.Object
java.lang.Record
net.minecraft.util.PngMetadata
- Record Components:
width
-height
-
- Mappings:
Namespace Name named net/minecraft/util/PngMetadata
intermediary net/minecraft/class_8800
official ayl
named width
intermediary comp_1965
official a
named height
intermediary comp_1966
official b
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.static PngMetadata
fromBytes
(byte[] bytes) static PngMetadata
fromStream
(InputStream stream) final int
hashCode()
Returns a hash code value for this object.int
height()
Returns the value of theheight
record component.final String
toString()
Returns a string representation of this record class.static void
validate
(ByteBuffer buf) int
width()
Returns the value of thewidth
record component.
-
Field Details
-
width
private final int widthThe field for thewidth
record component. -
height
private final int heightThe field for theheight
record component. -
PNG_SIGNATURE
private static final long PNG_SIGNATURE- See Also:
- Mappings:
Namespace Name Mixin selector named PNG_SIGNATURE
Lnet/minecraft/util/PngMetadata;PNG_SIGNATURE:J
intermediary field_46201
Lnet/minecraft/class_8800;field_46201:J
official c
Layl;c:J
-
IHDR_CHUNK_TYPE
private static final int IHDR_CHUNK_TYPE- See Also:
- Mappings:
Namespace Name Mixin selector named IHDR_CHUNK_TYPE
Lnet/minecraft/util/PngMetadata;IHDR_CHUNK_TYPE:I
intermediary field_46202
Lnet/minecraft/class_8800;field_46202:I
official d
Layl;d:I
-
IHDR_CHUNK_LENGTH
private static final int IHDR_CHUNK_LENGTH- See Also:
- Mappings:
Namespace Name Mixin selector named IHDR_CHUNK_LENGTH
Lnet/minecraft/util/PngMetadata;IHDR_CHUNK_LENGTH:I
intermediary field_46203
Lnet/minecraft/class_8800;field_46203:I
official e
Layl;e:I
-
-
Constructor Details
-
PngMetadata
public PngMetadata(int int2, int int3)
-
-
Method Details
-
fromStream
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector named fromStream
Lnet/minecraft/util/PngMetadata;fromStream(Ljava/io/InputStream;)Lnet/minecraft/util/PngMetadata;
intermediary method_53877
Lnet/minecraft/class_8800;method_53877(Ljava/io/InputStream;)Lnet/minecraft/class_8800;
official a
Layl;a(Ljava/io/InputStream;)Layl;
-
fromBytes
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector named fromBytes
Lnet/minecraft/util/PngMetadata;fromBytes([B)Lnet/minecraft/util/PngMetadata;
intermediary method_53878
Lnet/minecraft/class_8800;method_53878([B)Lnet/minecraft/class_8800;
official a
Layl;a([B)Layl;
-
validate
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector named validate
Lnet/minecraft/util/PngMetadata;validate(Ljava/nio/ByteBuffer;)V
intermediary method_54945
Lnet/minecraft/class_8800;method_54945(Ljava/nio/ByteBuffer;)V
official a
Layl;a(Ljava/nio/ByteBuffer;)V
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with '=='. -
width
public int width()Returns the value of thewidth
record component.- Returns:
- the value of the
width
record component
-
height
public int height()Returns the value of theheight
record component.- Returns:
- the value of the
height
record component
-