Package net.minecraft.world.chunk
Record Class ReadableContainer.Serialized<T>
java.lang.Object
java.lang.Record
net.minecraft.world.chunk.ReadableContainer.Serialized<T>
- Record Components:
paletteEntries- the palettestorage- the data of the containerbitsPerEntry-
- Enclosing interface:
ReadableContainer<T>
public static record ReadableContainer.Serialized<T>(List<T> paletteEntries, Optional<LongStream> storage, int bitsPerEntry)
extends Record
The storage form of the paletted container in the codec. The
palette is the entries
in the palette, but the interpretation of data depends on the palette
provider specified for the codec.- See Also:
- Mappings:
Namespace Name named net/minecraft/world/chunk/ReadableContainer$Serializedintermediary net/minecraft/class_7522$class_6562official emf$anamed paletteEntriesintermediary comp_75official bnamed storageintermediary comp_76official cnamed bitsPerEntryintermediary comp_4791official d
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for thebitsPerEntryrecord component.static final intThe field for thepaletteEntriesrecord component.private final Optional<LongStream> The field for thestoragerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionSerialized(List<T> paletteEntries, Optional<LongStream> storage) Serialized(List<T> list, Optional<LongStream> optional, int int2) -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thebitsPerEntryrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thepaletteEntriesrecord component.storage()Returns the value of thestoragerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
paletteEntries
The field for thepaletteEntriesrecord component. -
storage
The field for thestoragerecord component. -
bitsPerEntry
private final int bitsPerEntryThe field for thebitsPerEntryrecord component. -
MISSING_BITS_PER_ENTRY
public static final int MISSING_BITS_PER_ENTRY- See Also:
- Mappings:
Namespace Name Mixin selector named MISSING_BITS_PER_ENTRYLnet/minecraft/world/chunk/ReadableContainer$Serialized;MISSING_BITS_PER_ENTRY:Iintermediary field_62540Lnet/minecraft/class_7522$class_6562;field_62540:Iofficial aLemf$a;a:I
-
-
Constructor Details
-
Serialized
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/world/chunk/ReadableContainer$Serialized;<init>(Ljava/util/List;Ljava/util/Optional;)Vintermediary <init>Lnet/minecraft/class_7522$class_6562;<init>(Ljava/util/List;Ljava/util/Optional;)Vofficial <init>Lemf$a;<init>(Ljava/util/List;Ljava/util/Optional;)V
-
Serialized
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
paletteEntries
Returns the value of thepaletteEntriesrecord component.- Returns:
- the value of the
paletteEntriesrecord component
-
storage
Returns the value of thestoragerecord component.- Returns:
- the value of the
storagerecord component
-
bitsPerEntry
public int bitsPerEntry()Returns the value of thebitsPerEntryrecord component.- Returns:
- the value of the
bitsPerEntryrecord component
-