Record Class PngMetadata

java.lang.Object
java.lang.Record
net.minecraft.util.PngMetadata
Record Components:
width -
height -

public record PngMetadata(int width, int height) extends Record
Mappings:
Namespace Name
named net/minecraft/util/PngMetadata
intermediary net/minecraft/class_8800
official ays
named width
intermediary comp_1965
official a
named height
intermediary comp_1966
official b
  • Field Details

    • width

      private final int width
      The field for the width record component.
    • height

      private final int height
      The field for the height 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 Lays;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 Lays;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 Lays;e:I
  • Constructor Details

    • PngMetadata

      public PngMetadata(int int2, int int3)
  • Method Details

    • fromStream

      public static PngMetadata fromStream(InputStream stream) throws IOException
      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 Lays;a(Ljava/io/InputStream;)Lays;
    • fromBytes

      public static PngMetadata fromBytes(byte[] bytes) throws IOException
      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 Lays;a([B)Lays;
    • validate

      public static void validate(ByteBuffer buf) throws IOException
      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 Lays;a(Ljava/nio/ByteBuffer;)V
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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 '=='.
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • width

      public int width()
      Returns the value of the width record component.
      Returns:
      the value of the width record component
    • height

      public int height()
      Returns the value of the height record component.
      Returns:
      the value of the height record component