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 - aze- named - width- intermediary - comp_1965- official - a- named - height- intermediary - comp_1966- official - b
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.static PngMetadatafromBytes(byte[] bytes) static PngMetadatafromStream(InputStream stream) final inthashCode()Returns a hash code value for this object.intheight()Returns the value of theheightrecord component.final StringtoString()Returns a string representation of this record class.static voidvalidate(ByteBuffer buf) intwidth()Returns the value of thewidthrecord component.
- 
Field Details- 
widthprivate final int widthThe field for thewidthrecord component.
- 
heightprivate final int heightThe field for theheightrecord component.
- 
HEX_FORMAT- Mappings:
- Namespace - Name - Mixin selector - named - HEX_FORMAT- Lnet/minecraft/util/PngMetadata;HEX_FORMAT:Ljava/util/HexFormat;- intermediary - field_55543- Lnet/minecraft/class_8800;field_55543:Ljava/util/HexFormat;- official - c- Laze;c:Ljava/util/HexFormat;
 
- 
PNG_SIGNATUREprivate 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 - d- Laze;d:J
 
- 
IHDR_CHUNK_TYPEprivate 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 - e- Laze;e:I
 
- 
IHDR_CHUNK_LENGTHprivate 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 - f- Laze;f:I
 
 
- 
- 
Constructor Details- 
PngMetadatapublic 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- Laze;a(Ljava/io/InputStream;)Laze;
 
- 
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- Laze;a([B)Laze;
 
- 
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- Laze;a(Ljava/nio/ByteBuffer;)V
 
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 '=='.
- 
widthpublic int width()Returns the value of thewidthrecord component.- Returns:
- the value of the widthrecord component
 
- 
heightpublic int height()Returns the value of theheightrecord component.- Returns:
- the value of the heightrecord component
 
 
-