Package net.minecraft
Record Class class_11895.DataProvider
java.lang.Object
java.lang.Record
net.minecraft.class_11895.DataProvider
- Record Components:
factory- the palette factorybits- the number of bits each element use
- All Implemented Interfaces:
class_11895
- Enclosing interface:
class_11895
public static record class_11895.DataProvider(Palette.Factory factory, int bits)
extends Record
implements class_11895
A palette data provider constructs an empty data for a paletted
container given a palette provider and a desired entry size in bits.
- Mappings:
Namespace Name named net/minecraft/class_11895$DataProviderintermediary net/minecraft/class_11895$class_6560official eks$bnamed factoryintermediary comp_72official anamed bitsintermediary comp_73official b
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.class_11895
class_11895.class_11896, class_11895.DataProvider -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for thebitsrecord component.private final Palette.FactoryThe field for thefactoryrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbits()Returns the value of thebitsrecord component.intintfinal 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.boolean<T> Palette<T> method_74152(PaletteProvider<T> paletteProvider, List<T> list) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
Constructor Details
-
DataProvider
-
-
Method Details
-
method_74151
public boolean method_74151()- Specified by:
method_74151in interfaceclass_11895- Mappings:
Namespace Name Mixin selector named method_74151Lnet/minecraft/class_11895;method_74151()Zintermediary method_74151Lnet/minecraft/class_11895;method_74151()Zofficial aLeks;a()Z
-
method_74152
- Specified by:
method_74152in interfaceclass_11895- Mappings:
Namespace Name Mixin selector named method_74152Lnet/minecraft/class_11895;method_74152(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 aLeks;a(Lell;Ljava/util/List;)Lele;
-
bitsInMemory
public int bitsInMemory()- Specified by:
bitsInMemoryin interfaceclass_11895- Mappings:
Namespace Name Mixin selector named bitsInMemoryLnet/minecraft/class_11895;bitsInMemory()Iintermediary comp_4783Lnet/minecraft/class_11895;comp_4783()Iofficial bLeks;b()I
-
bitsInStorage
public int bitsInStorage()- Specified by:
bitsInStoragein interfaceclass_11895- Mappings:
Namespace Name Mixin selector named bitsInStorageLnet/minecraft/class_11895;bitsInStorage()Iintermediary comp_4784Lnet/minecraft/class_11895;comp_4784()Iofficial cLeks;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
-