Package net.minecraft.util
Record Class PngMetadata
java.lang.Object
java.lang.Record
net.minecraft.util.PngMetadata
- Record Components:
width
-height
-
- Mappings:
Namespace Name official asa
intermediary net/minecraft/class_8800
named net/minecraft/util/PngMetadata
official a
intermediary comp_1965
named width
official b
intermediary comp_1966
named height
-
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.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 official c
Lasa;c:J
intermediary field_46201
Lnet/minecraft/class_8800;field_46201:J
named PNG_SIGNATURE
Lnet/minecraft/util/PngMetadata;PNG_SIGNATURE:J
-
IHDR_CHUNK_TYPE
private static final int IHDR_CHUNK_TYPE- See Also:
- Mappings:
Namespace Name Mixin selector official d
Lasa;d:I
intermediary field_46202
Lnet/minecraft/class_8800;field_46202:I
named IHDR_CHUNK_TYPE
Lnet/minecraft/util/PngMetadata;IHDR_CHUNK_TYPE:I
-
IHDR_CHUNK_LENGTH
private static final int IHDR_CHUNK_LENGTH- See Also:
- Mappings:
Namespace Name Mixin selector official e
Lasa;e:I
intermediary field_46203
Lnet/minecraft/class_8800;field_46203:I
named IHDR_CHUNK_LENGTH
Lnet/minecraft/util/PngMetadata;IHDR_CHUNK_LENGTH:I
-
-
Constructor Details
-
PngMetadata
public PngMetadata(int int2, int int3)
-
-
Method Details
-
fromStream
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official a
Lasa;a(Ljava/io/InputStream;)Lasa;
intermediary method_53877
Lnet/minecraft/class_8800;method_53877(Ljava/io/InputStream;)Lnet/minecraft/class_8800;
named fromStream
Lnet/minecraft/util/PngMetadata;fromStream(Ljava/io/InputStream;)Lnet/minecraft/util/PngMetadata;
-
fromBytes
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official a
Lasa;a([B)Lasa;
intermediary method_53878
Lnet/minecraft/class_8800;method_53878([B)Lnet/minecraft/class_8800;
named fromBytes
Lnet/minecraft/util/PngMetadata;fromBytes([B)Lnet/minecraft/util/PngMetadata;
-
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
-