Package net.minecraft.world.level.chunk
Record Class PalettedContainer.Data<T>
java.lang.Object
java.lang.Record
net.minecraft.world.level.chunk.PalettedContainer.Data<T>
- Enclosing class:
- PalettedContainer<T>
static record PalettedContainer.Data<T>(PalettedContainer.Configuration<T> configuration, BitStorage storage, Palette<T> palette)
extends Record
-
Field Summary
Modifier and TypeFieldDescriptionprivate final PalettedContainer.Configuration<T>
The field for theconfiguration
record component.The field for thepalette
record component.private final BitStorage
The field for thestorage
record component. -
Constructor Summary
ConstructorDescriptionData
(PalettedContainer.Configuration<T> configuration, BitStorage storage, Palette<T> palette) Creates an instance of aData
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconfiguration
record component.void
copyFrom
(Palette<T> p_188112_, BitStorage p_188113_) final boolean
Indicates whether some other object is "equal to" this one.int
final int
hashCode()
Returns a hash code value for this object.palette()
Returns the value of thepalette
record component.storage()
Returns the value of thestorage
record component.final String
toString()
Returns a string representation of this record class.void
write
(FriendlyByteBuf p_188115_)
-
Field Details
-
configuration
The field for theconfiguration
record component. -
storage
The field for thestorage
record component. -
palette
The field for thepalette
record component.
-
-
Constructor Details
-
Data
Data(PalettedContainer.Configuration<T> configuration, BitStorage storage, Palette<T> palette) Creates an instance of aData
record class.- Parameters:
configuration
- the value for theconfiguration
record componentstorage
- the value for thestorage
record componentpalette
- the value for thepalette
record component
-
-
Method Details
-
copyFrom
-
getSerializedSize
public int getSerializedSize() -
write
-
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)
. -
configuration
Returns the value of theconfiguration
record component.- Returns:
- the value of the
configuration
record component
-
storage
Returns the value of thestorage
record component.- Returns:
- the value of the
storage
record component
-
palette
Returns the value of thepalette
record component.- Returns:
- the value of the
palette
record component
-