Package net.minecraft.world.chunk
Class BiMapPalette<T>
java.lang.Object
net.minecraft.world.chunk.BiMapPalette<T>
- All Implemented Interfaces:
Palette<T>
- Mappings:
Namespace Name official cmuintermediary net/minecraft/class_2814named net/minecraft/world/chunk/BiMapPalette
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Function<NbtCompound,T>private Function<T,NbtCompound>private intprivate Int2ObjectBiMap<T>private PaletteResizeListener<T> -
Constructor Summary
ConstructorsConstructorDescriptionBiMapPalette(IdList<T> idList, int indexBits, PaletteResizeListener<T> resizeHandler, Function<NbtCompound,T> elementDeserializer, Function<T,NbtCompound> elementSerializer) -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidfromPacket(PacketByteBuf buf)getByIndex(int index)intintintvoidvoidtoPacket(PacketByteBuf buf)void
-
Field Details
-
idList
- Mappings:
Namespace Name Mixin selector official aLcmu;a:Lgq;intermediary field_12821Lnet/minecraft/class_2814;field_12821:Lnet/minecraft/class_2361;named idListLnet/minecraft/world/chunk/BiMapPalette;idList:Lnet/minecraft/util/collection/IdList;
-
map
- Mappings:
Namespace Name Mixin selector official bLcmu;b:Lagi;intermediary field_12824Lnet/minecraft/class_2814;field_12824:Lnet/minecraft/class_3513;named mapLnet/minecraft/world/chunk/BiMapPalette;map:Lnet/minecraft/util/collection/Int2ObjectBiMap;
-
resizeHandler
- Mappings:
Namespace Name Mixin selector official cLcmu;c:Lcnc;intermediary field_12825Lnet/minecraft/class_2814;field_12825:Lnet/minecraft/class_2835;named resizeHandlerLnet/minecraft/world/chunk/BiMapPalette;resizeHandler:Lnet/minecraft/world/chunk/PaletteResizeListener;
-
elementDeserializer
- Mappings:
Namespace Name Mixin selector official dLcmu;d:Ljava/util/function/Function;intermediary field_12823Lnet/minecraft/class_2814;field_12823:Ljava/util/function/Function;named elementDeserializerLnet/minecraft/world/chunk/BiMapPalette;elementDeserializer:Ljava/util/function/Function;
-
elementSerializer
- Mappings:
Namespace Name Mixin selector official eLcmu;e:Ljava/util/function/Function;intermediary field_12826Lnet/minecraft/class_2814;field_12826:Ljava/util/function/Function;named elementSerializerLnet/minecraft/world/chunk/BiMapPalette;elementSerializer:Ljava/util/function/Function;
-
indexBits
private final int indexBits- Mappings:
Namespace Name Mixin selector official fLcmu;f:Iintermediary field_12822Lnet/minecraft/class_2814;field_12822:Inamed indexBitsLnet/minecraft/world/chunk/BiMapPalette;indexBits:I
-
-
Constructor Details
-
BiMapPalette
public BiMapPalette(IdList<T> idList, int indexBits, PaletteResizeListener<T> resizeHandler, Function<NbtCompound,T> elementDeserializer, Function<T,NbtCompound> elementSerializer)- Mappings:
Namespace Name Mixin selector official <init>Lcmu;<init>(Lgq;ILcnc;Ljava/util/function/Function;Ljava/util/function/Function;)Vintermediary <init>Lnet/minecraft/class_2814;<init>(Lnet/minecraft/class_2361;ILnet/minecraft/class_2835;Ljava/util/function/Function;Ljava/util/function/Function;)Vnamed <init>Lnet/minecraft/world/chunk/BiMapPalette;<init>(Lnet/minecraft/util/collection/IdList;ILnet/minecraft/world/chunk/PaletteResizeListener;Ljava/util/function/Function;Ljava/util/function/Function;)V
-
-
Method Details
-
getIndex
-
accepts
- Specified by:
acceptsin interfacePalette<T>- Mappings:
Namespace Name Mixin selector official aLcnb;a(Ljava/util/function/Predicate;)Zintermediary method_19525Lnet/minecraft/class_2837;method_19525(Ljava/util/function/Predicate;)Znamed acceptsLnet/minecraft/world/chunk/Palette;accepts(Ljava/util/function/Predicate;)Z
-
getByIndex
- Specified by:
getByIndexin interfacePalette<T>- Mappings:
Namespace Name Mixin selector official aLcnb;a(I)Ljava/lang/Object;intermediary method_12288Lnet/minecraft/class_2837;method_12288(I)Ljava/lang/Object;named getByIndexLnet/minecraft/world/chunk/Palette;getByIndex(I)Ljava/lang/Object;
-
fromPacket
- Specified by:
fromPacketin interfacePalette<T>- Mappings:
Namespace Name Mixin selector official aLcnb;a(Log;)Vintermediary method_12289Lnet/minecraft/class_2837;method_12289(Lnet/minecraft/class_2540;)Vnamed fromPacketLnet/minecraft/world/chunk/Palette;fromPacket(Lnet/minecraft/network/PacketByteBuf;)V
-
toPacket
- Specified by:
toPacketin interfacePalette<T>- Mappings:
Namespace Name Mixin selector official bLcnb;b(Log;)Vintermediary method_12287Lnet/minecraft/class_2837;method_12287(Lnet/minecraft/class_2540;)Vnamed toPacketLnet/minecraft/world/chunk/Palette;toPacket(Lnet/minecraft/network/PacketByteBuf;)V
-
getPacketSize
public int getPacketSize()- Specified by:
getPacketSizein interfacePalette<T>- Mappings:
Namespace Name Mixin selector official aLcnb;a()Iintermediary method_12290Lnet/minecraft/class_2837;method_12290()Inamed getPacketSizeLnet/minecraft/world/chunk/Palette;getPacketSize()I
-
getIndexBits
public int getIndexBits()- Specified by:
getIndexBitsin interfacePalette<T>- Mappings:
Namespace Name Mixin selector official bLcnb;b()Iintermediary method_12197Lnet/minecraft/class_2837;method_12197()Inamed getIndexBitsLnet/minecraft/world/chunk/Palette;getIndexBits()I
-
readNbt
-
writeNbt
- Mappings:
Namespace Name Mixin selector official bLcmu;b(Lng;)Vintermediary method_12196Lnet/minecraft/class_2814;method_12196(Lnet/minecraft/class_2499;)Vnamed writeNbtLnet/minecraft/world/chunk/BiMapPalette;writeNbt(Lnet/minecraft/nbt/NbtList;)V
-