Record Class SnbtProvider.CompressedData

java.lang.Object
java.lang.Record
net.minecraft.data.SnbtProvider.CompressedData
Record Components:
name -
bytes -
sha1 -
Enclosing class:
SnbtProvider

private static record SnbtProvider.CompressedData(String name, byte[] bytes, HashCode sha1) extends Record
Mappings:
Namespace Name
named net/minecraft/data/SnbtProvider$CompressedData
intermediary net/minecraft/class_2463$class_4511
official pl$c
named name
intermediary comp_780
official a
named bytes
intermediary comp_781
official b
named sha1
intermediary comp_783
official c
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final byte[]
    The field for the bytes record component.
    private final String
    The field for the name record component.
    private final HashCode
    The field for the sha1 record component.
  • Constructor Summary

    Constructors
    Constructor
    Description
    CompressedData(String name, byte[] bytes, HashCode hashCode)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    Returns the value of the bytes record component.
    final boolean
    equals(Object object)
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    Returns the value of the name record component.
    Returns the value of the sha1 record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • name

      private final String name
      The field for the name record component.
    • bytes

      private final byte[] bytes
      The field for the bytes record component.
    • sha1

      private final HashCode sha1
      The field for the sha1 record component.
  • Constructor Details

    • CompressedData

      CompressedData(String name, byte[] bytes, HashCode hashCode)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/data/SnbtProvider$CompressedData;<init>(Ljava/lang/String;[BLcom/google/common/hash/HashCode;)V
      intermediary <init> Lnet/minecraft/class_2463$class_4511;<init>(Ljava/lang/String;[BLcom/google/common/hash/HashCode;)V
      official <init> Lpl$c;<init>(Ljava/lang/String;[BLcom/google/common/hash/HashCode;)V
  • Method Details

    • 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 Objects::equals(Object,Object).
      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.
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • bytes

      public byte[] bytes()
      Returns the value of the bytes record component.
      Returns:
      the value of the bytes record component
    • sha1

      public HashCode sha1()
      Returns the value of the sha1 record component.
      Returns:
      the value of the sha1 record component