Record Class PalettedContainer.Data<T>
java.lang.Object
java.lang.Record
net.minecraft.world.level.chunk.PalettedContainer.Data<T>
- Enclosing class:
PalettedContainer<T>
private static record PalettedContainer.Data<T>(Configuration configuration, BitStorage storage, Palette<T> palette)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ConfigurationThe field for theconfigurationrecord component.The field for thepaletterecord component.private final BitStorageThe field for thestoragerecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateData(Configuration configuration, BitStorage storage, Palette<T> palette) Creates an instance of aDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconfigurationrecord component.copy()voidcopyFrom(Palette<T> oldPalette, BitStorage oldStorage) final booleanIndicates whether some other object is "equal to" this one.intgetSerializedSize(IdMap<T> globalMap) final inthashCode()Returns a hash code value for this object.palette()Returns the value of thepaletterecord component.storage()Returns the value of thestoragerecord component.final StringtoString()Returns a string representation of this record class.voidwrite(FriendlyByteBuf buffer, IdMap<T> globalMap)
-
Field Details
-
configuration
The field for theconfigurationrecord component. -
storage
The field for thestoragerecord component. -
palette
-
-
Constructor Details
-
Data
Creates an instance of aDatarecord class.- Parameters:
configuration- the value for theconfigurationrecord componentstorage- the value for thestoragerecord componentpalette- the value for thepaletterecord component
-
-
Method Details
-
copyFrom
-
getSerializedSize
-
write
-
copy
-
toString
-
hashCode
-
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 theconfigurationrecord component.- Returns:
- the value of the
configurationrecord component
-
storage
Returns the value of thestoragerecord component.- Returns:
- the value of the
storagerecord component
-
palette
-