Package net.minecraft.data
Record Class SnbtProvider.CompressedData
java.lang.Object
java.lang.Record
net.minecraft.data.SnbtProvider.CompressedData
- Record Components:
name-bytes-snbtContent-sha1-
- Enclosing class:
SnbtProvider
private static record SnbtProvider.CompressedData(String name, byte[] bytes, @Nullable String snbtContent, HashCode sha1)
extends Record
- Mappings:
Namespace Name official mh$cintermediary net/minecraft/class_2463$class_4511named net/minecraft/data/SnbtProvider$CompressedDataofficial aintermediary comp_780named nameofficial bintermediary comp_781named bytesofficial cintermediary comp_782named snbtContentofficial dintermediary comp_783named sha1
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCompressedData(String name, byte[] bytes, @Nullable String snbtContent, HashCode hashCode) -
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.Returns the value of thesnbtContentrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
name
The field for thenamerecord component. -
bytes
private final byte[] bytesThe field for thebytesrecord component. -
snbtContent
The field for thesnbtContentrecord component. -
sha1
The field for thesha1record component.
-
-
Constructor Details
-
CompressedData
CompressedData(String name, byte[] bytes, @Nullable @Nullable String snbtContent, HashCode hashCode) - Mappings:
Namespace Name Mixin selector official <init>Lmh$c;<init>(Ljava/lang/String;[BLjava/lang/String;Lcom/google/common/hash/HashCode;)Vintermediary <init>Lnet/minecraft/class_2463$class_4511;<init>(Ljava/lang/String;[BLjava/lang/String;Lcom/google/common/hash/HashCode;)Vnamed <init>Lnet/minecraft/data/SnbtProvider$CompressedData;<init>(Ljava/lang/String;[BLjava/lang/String;Lcom/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
-
snbtContent
Returns the value of thesnbtContentrecord component.- Returns:
- the value of the
snbtContentrecord component
-
sha1
Returns the value of thesha1record component.- Returns:
- the value of the
sha1record component
-