Package net.minecraft.data
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$CompressedDataintermediary net/minecraft/class_2463$class_4511official ph$cnamed nameintermediary comp_780official anamed bytesintermediary comp_781official bnamed sha1intermediary comp_783official c
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]bytes()Returns the value of thebytesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.sha1()Returns the value of thesha1record component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
Constructor Details
-
CompressedData
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/data/SnbtProvider$CompressedData;<init>(Ljava/lang/String;[BLcom/google/common/hash/HashCode;)Vintermediary <init>Lnet/minecraft/class_2463$class_4511;<init>(Ljava/lang/String;[BLcom/google/common/hash/HashCode;)Vofficial <init>Lph$c;<init>(Ljava/lang/String;[BLcom/google/common/hash/HashCode;)V
-
-
Method Details
-
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 withObjects::equals(Object,Object). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
bytes
public byte[] bytes()Returns the value of thebytesrecord component.- Returns:
- the value of the
bytesrecord component
-
sha1
Returns the value of thesha1record component.- Returns:
- the value of the
sha1record component
-