Package net.minecraft.world.level.chunk
Record Class PalettedContainer.Configuration<T>
java.lang.Object
java.lang.Record
net.minecraft.world.level.chunk.PalettedContainer.Configuration<T>
- Enclosing class:
- PalettedContainer<T>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final intThe field for thebitsrecord component.private final Palette.FactoryThe field for thefactoryrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionConfiguration(Palette.Factory factory, int bits) Creates an instance of aConfigurationrecord class.
- 
Method SummaryModifier and TypeMethodDescriptionintbits()Returns the value of thebitsrecord component.createData(IdMap<T> p_188092_, PaletteResize<T> p_188093_, int p_188094_) final booleanIndicates whether some other object is "equal to" this one.factory()Returns the value of thefactoryrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
factoryThe field for thefactoryrecord component.
- 
bitsprivate final int bitsThe field for thebitsrecord component.
 
- 
- 
Constructor Details- 
ConfigurationConfiguration(Palette.Factory factory, int bits) Creates an instance of aConfigurationrecord class.- Parameters:
- factory- the value for the- factoryrecord component
- bits- the value for the- bitsrecord component
 
 
- 
- 
Method Details- 
createDatapublic PalettedContainer.Data<T> createData(IdMap<T> p_188092_, PaletteResize<T> p_188093_, int p_188094_) 
- 
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='.
- 
factoryReturns the value of thefactoryrecord component.- Returns:
- the value of the factoryrecord component
 
- 
bitspublic int bits()Returns the value of thebitsrecord component.- Returns:
- the value of the bitsrecord component
 
 
-