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
Modifier and TypeFieldDescriptionprivate final int
The field for thebits
record component.private final Palette.Factory
The field for thefactory
record component. -
Constructor Summary
ConstructorDescriptionConfiguration
(Palette.Factory factory, int bits) Creates an instance of aConfiguration
record class. -
Method Summary
Modifier and TypeMethodDescriptionint
bits()
Returns the value of thebits
record component.createData
(IdMap<T> p_188092_, PaletteResize<T> p_188093_, int p_188094_) final boolean
Indicates whether some other object is "equal to" this one.factory()
Returns the value of thefactory
record component.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
factory
The field for thefactory
record component. -
bits
private final int bitsThe field for thebits
record component.
-
-
Constructor Details
-
Configuration
Configuration(Palette.Factory factory, int bits) Creates an instance of aConfiguration
record class.- Parameters:
factory
- the value for thefactory
record componentbits
- the value for thebits
record 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 thefactory
record component.- Returns:
- the value of the
factory
record component
-
bits
public int bits()Returns the value of thebits
record component.- Returns:
- the value of the
bits
record component
-