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$c- intermediary - net/minecraft/class_2463$class_4511- named - net/minecraft/data/SnbtProvider$CompressedData- official - a- intermediary - comp_780- named - name- official - b- intermediary - comp_781- named - bytes- official - c- intermediary - comp_782- named - snbtContent- official - d- intermediary - comp_783- named - sha1
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionCompressedData(String name, byte[] bytes, @Nullable String snbtContent, HashCode hashCode) 
- 
Method SummaryModifier 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- 
nameThe field for thenamerecord component.
- 
bytesprivate final byte[] bytesThe field for thebytesrecord component.
- 
snbtContentThe field for thesnbtContentrecord component.
- 
sha1The field for thesha1record component.
 
- 
- 
Constructor Details- 
CompressedDataCompressedData(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;)V- intermediary - <init>- Lnet/minecraft/class_2463$class_4511;<init>(Ljava/lang/String;[BLjava/lang/String;Lcom/google/common/hash/HashCode;)V- named - <init>- Lnet/minecraft/data/SnbtProvider$CompressedData;<init>(Ljava/lang/String;[BLjava/lang/String;Lcom/google/common/hash/HashCode;)V
 
 
- 
- 
Method Details- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
nameReturns the value of thenamerecord component.- Returns:
- the value of the namerecord component
 
- 
bytespublic byte[] bytes()Returns the value of thebytesrecord component.- Returns:
- the value of the bytesrecord component
 
- 
snbtContentReturns the value of thesnbtContentrecord component.- Returns:
- the value of the snbtContentrecord component
 
- 
sha1Returns the value of thesha1record component.- Returns:
- the value of the sha1record component
 
 
-