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
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 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
      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

      public static PngMetadata fromStream(InputStream stream) throws IOException
      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

      public static PngMetadata fromBytes(byte[] bytes) throws IOException
      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

      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