Package net.minecraft.world.chunk
Record Class PaletteType.Static
java.lang.Object
java.lang.Record
net.minecraft.world.chunk.PaletteType.Static
- Record Components:
factory- the palette factorybits- the number of bits each element use
- All Implemented Interfaces:
PaletteType
- Enclosing interface:
PaletteType
public static record PaletteType.Static(Palette.Factory factory, int bits)
extends Record
implements PaletteType
- Mappings:
Namespace Name named net/minecraft/world/chunk/PaletteType$Staticintermediary net/minecraft/class_11895$class_6560official epc$bnamed factoryintermediary comp_72official anamed bitsintermediary comp_73official b
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.world.chunk.PaletteType
PaletteType.Dynamic, PaletteType.Static -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for thebitsrecord component.private final Palette.FactoryThe field for thefactoryrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionStatic(Palette.Factory factory, int bits) Creates an instance of aStaticrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintbits()Returns the value of thebitsrecord component.intint<T> Palette<T> createPalette(PaletteProvider<T> provider, List<T> values) 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.booleanfinal StringtoString()Returns a string representation of this record class.
-
Field Details
-
Constructor Details
-
Method Details
-
shouldRepack
public boolean shouldRepack()- Specified by:
shouldRepackin interfacePaletteType- Mappings:
Namespace Name Mixin selector named shouldRepackLnet/minecraft/world/chunk/PaletteType;shouldRepack()Zintermediary method_74151Lnet/minecraft/class_11895;method_74151()Zofficial aLepc;a()Z
-
createPalette
- Specified by:
createPalettein interfacePaletteType- Mappings:
Namespace Name Mixin selector named createPaletteLnet/minecraft/world/chunk/PaletteType;createPalette(Lnet/minecraft/world/chunk/PaletteProvider;Ljava/util/List;)Lnet/minecraft/world/chunk/Palette;intermediary method_74152Lnet/minecraft/class_11895;method_74152(Lnet/minecraft/class_6563;Ljava/util/List;)Lnet/minecraft/class_2837;official aLepc;a(Lepv;Ljava/util/List;)Lepo;
-
bitsInMemory
public int bitsInMemory()- Specified by:
bitsInMemoryin interfacePaletteType- Mappings:
Namespace Name Mixin selector named bitsInMemoryLnet/minecraft/world/chunk/PaletteType;bitsInMemory()Iintermediary comp_4783Lnet/minecraft/class_11895;comp_4783()Iofficial bLepc;b()I
-
bitsInStorage
public int bitsInStorage()- Specified by:
bitsInStoragein interfacePaletteType- Mappings:
Namespace Name Mixin selector named bitsInStorageLnet/minecraft/world/chunk/PaletteType;bitsInStorage()Iintermediary comp_4784Lnet/minecraft/class_11895;comp_4784()Iofficial cLepc;c()I
-
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
-