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/PngMetadataintermediary net/minecraft/class_8800official aytnamed widthintermediary comp_1965official anamed heightintermediary comp_1966official b
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier 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
-
width
private final int widthThe field for thewidthrecord component. -
height
private final int heightThe field for theheightrecord component. -
PNG_SIGNATURE
private static final long PNG_SIGNATURE- See Also:
- Mappings:
Namespace Name Mixin selector named PNG_SIGNATURELnet/minecraft/util/PngMetadata;PNG_SIGNATURE:Jintermediary field_46201Lnet/minecraft/class_8800;field_46201:Jofficial cLayt;c:J
-
IHDR_CHUNK_TYPE
private static final int IHDR_CHUNK_TYPE- See Also:
- Mappings:
Namespace Name Mixin selector named IHDR_CHUNK_TYPELnet/minecraft/util/PngMetadata;IHDR_CHUNK_TYPE:Iintermediary field_46202Lnet/minecraft/class_8800;field_46202:Iofficial dLayt;d:I
-
IHDR_CHUNK_LENGTH
private static final int IHDR_CHUNK_LENGTH- See Also:
- Mappings:
Namespace Name Mixin selector named IHDR_CHUNK_LENGTHLnet/minecraft/util/PngMetadata;IHDR_CHUNK_LENGTH:Iintermediary field_46203Lnet/minecraft/class_8800;field_46203:Iofficial eLayt;e:I
-
-
Constructor Details
-
PngMetadata
public PngMetadata(int int2, int int3)
-
-
Method Details
-
fromStream
- Throws:
IOException- Mappings:
Namespace Name Mixin selector named fromStreamLnet/minecraft/util/PngMetadata;fromStream(Ljava/io/InputStream;)Lnet/minecraft/util/PngMetadata;intermediary method_53877Lnet/minecraft/class_8800;method_53877(Ljava/io/InputStream;)Lnet/minecraft/class_8800;official aLayt;a(Ljava/io/InputStream;)Layt;
-
fromBytes
- Throws:
IOException- Mappings:
Namespace Name Mixin selector named fromBytesLnet/minecraft/util/PngMetadata;fromBytes([B)Lnet/minecraft/util/PngMetadata;intermediary method_53878Lnet/minecraft/class_8800;method_53878([B)Lnet/minecraft/class_8800;official aLayt;a([B)Layt;
-
validate
- Throws:
IOException- Mappings:
Namespace Name Mixin selector named validateLnet/minecraft/util/PngMetadata;validate(Ljava/nio/ByteBuffer;)Vintermediary method_54945Lnet/minecraft/class_8800;method_54945(Ljava/nio/ByteBuffer;)Vofficial aLayt;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 thewidthrecord component.- Returns:
- the value of the
widthrecord component
-
height
public int height()Returns the value of theheightrecord component.- Returns:
- the value of the
heightrecord component
-