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 Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for thebitsrecord component.private final Palette.FactoryThe field for thefactoryrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionConfiguration(Palette.Factory factory, int bits) Creates an instance of aConfigurationrecord class. -
Method Summary
Modifier 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
-
factory
The field for thefactoryrecord component. -
bits
private final int bitsThe field for thebitsrecord component.
-
-
Constructor Details
-
Configuration
Configuration(Palette.Factory factory, int bits) Creates an instance of aConfigurationrecord class.- Parameters:
factory- the value for thefactoryrecord componentbits- the value for thebitsrecord component
-
-
Method Details
-
createData
public PalettedContainer.Data<T> createData(IdMap<T> p_188092_, PaletteResize<T> p_188093_, int p_188094_) -
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 '=='. -
factory
Returns the value of thefactoryrecord component.- Returns:
- the value of the
factoryrecord component
-
bits
public int bits()Returns the value of thebitsrecord component.- Returns:
- the value of the
bitsrecord component
-