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 ausintermediary net/minecraft/class_8800named net/minecraft/util/PngMetadataofficial aintermediary comp_1965named widthofficial bintermediary comp_1966named height
-
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 official cLaus;c:Jintermediary field_46201Lnet/minecraft/class_8800;field_46201:Jnamed PNG_SIGNATURELnet/minecraft/util/PngMetadata;PNG_SIGNATURE:J
-
IHDR_CHUNK_TYPE
private static final int IHDR_CHUNK_TYPE- See Also:
- Mappings:
Namespace Name Mixin selector official dLaus;d:Iintermediary field_46202Lnet/minecraft/class_8800;field_46202:Inamed IHDR_CHUNK_TYPELnet/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 eLaus;e:Iintermediary field_46203Lnet/minecraft/class_8800;field_46203:Inamed IHDR_CHUNK_LENGTHLnet/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 aLaus;a(Ljava/io/InputStream;)Laus;intermediary method_53877Lnet/minecraft/class_8800;method_53877(Ljava/io/InputStream;)Lnet/minecraft/class_8800;named fromStreamLnet/minecraft/util/PngMetadata;fromStream(Ljava/io/InputStream;)Lnet/minecraft/util/PngMetadata;
-
fromBytes
- Throws:
IOException- Mappings:
Namespace Name Mixin selector official aLaus;a([B)Laus;intermediary method_53878Lnet/minecraft/class_8800;method_53878([B)Lnet/minecraft/class_8800;named fromBytesLnet/minecraft/util/PngMetadata;fromBytes([B)Lnet/minecraft/util/PngMetadata;
-
validate
- Throws:
IOException- Mappings:
Namespace Name Mixin selector official aLaus;a(Ljava/nio/ByteBuffer;)Vintermediary method_54945Lnet/minecraft/class_8800;method_54945(Ljava/nio/ByteBuffer;)Vnamed validateLnet/minecraft/util/PngMetadata;validate(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
-