Package net.minecraft.world.chunk
Class ArrayPalette<T>
java.lang.Object
net.minecraft.world.chunk.ArrayPalette<T>
- All Implemented Interfaces:
Palette<T>
public class ArrayPalette<T> extends Object implements Palette<T>
- Mappings:
Namespace Name official cjz
intermediary net/minecraft/class_2834
named net/minecraft/world/chunk/ArrayPalette
-
Field Summary
Fields Modifier and Type Field Description private T[]
array
private IdList<T>
idList
private int
indexBits
private PaletteResizeListener<T>
resizeListener
private int
size
private Function<CompoundTag,T>
valueDeserializer
-
Constructor Summary
Constructors Constructor Description ArrayPalette(IdList<T> idList, int integer, PaletteResizeListener<T> resizeListener, Function<CompoundTag,T> valueDeserializer)
-
Method Summary
Modifier and Type Method Description boolean
accepts(Predicate<T> predicate)
void
fromPacket(PacketByteBuf buf)
void
fromTag(ListTag tag)
T
getByIndex(int index)
int
getIndex(T object)
int
getPacketSize()
int
getSize()
void
toPacket(PacketByteBuf buf)
-
Field Details
-
idList
- Mappings:
Namespace Name Mixin selector official a
Lcjz;a:Lgh;
intermediary field_12900
Lnet/minecraft/class_2834;field_12900:Lnet/minecraft/class_2361;
named idList
Lnet/minecraft/world/chunk/ArrayPalette;idList:Lnet/minecraft/util/collection/IdList;
-
array
- Mappings:
Namespace Name Mixin selector official b
Lcjz;b:[Ljava/lang/Object;
intermediary field_12904
Lnet/minecraft/class_2834;field_12904:[Ljava/lang/Object;
named array
Lnet/minecraft/world/chunk/ArrayPalette;array:[Ljava/lang/Object;
-
resizeListener
- Mappings:
Namespace Name Mixin selector official c
Lcjz;c:Lckc;
intermediary field_12905
Lnet/minecraft/class_2834;field_12905:Lnet/minecraft/class_2835;
named resizeListener
Lnet/minecraft/world/chunk/ArrayPalette;resizeListener:Lnet/minecraft/world/chunk/PaletteResizeListener;
-
valueDeserializer
- Mappings:
Namespace Name Mixin selector official d
Lcjz;d:Ljava/util/function/Function;
intermediary field_12902
Lnet/minecraft/class_2834;field_12902:Ljava/util/function/Function;
named valueDeserializer
Lnet/minecraft/world/chunk/ArrayPalette;valueDeserializer:Ljava/util/function/Function;
-
indexBits
private final int indexBits- Mappings:
Namespace Name Mixin selector official e
Lcjz;e:I
intermediary field_12903
Lnet/minecraft/class_2834;field_12903:I
named indexBits
Lnet/minecraft/world/chunk/ArrayPalette;indexBits:I
-
size
private int size- Mappings:
Namespace Name Mixin selector official f
Lcjz;f:I
intermediary field_12901
Lnet/minecraft/class_2834;field_12901:I
named size
Lnet/minecraft/world/chunk/ArrayPalette;size:I
-
-
Constructor Details
-
ArrayPalette
public ArrayPalette(IdList<T> idList, int integer, PaletteResizeListener<T> resizeListener, Function<CompoundTag,T> valueDeserializer)- Mappings:
Namespace Name Mixin selector official <init>
Lcjz;<init>(Lgh;ILckc;Ljava/util/function/Function;)V
intermediary <init>
Lnet/minecraft/class_2834;<init>(Lnet/minecraft/class_2361;ILnet/minecraft/class_2835;Ljava/util/function/Function;)V
named <init>
Lnet/minecraft/world/chunk/ArrayPalette;<init>(Lnet/minecraft/util/collection/IdList;ILnet/minecraft/world/chunk/PaletteResizeListener;Ljava/util/function/Function;)V
-
-
Method Details
-
getIndex
-
accepts
- Specified by:
accepts
in interfacePalette<T>
- Mappings:
Namespace Name Mixin selector official a
Lckb;a(Ljava/util/function/Predicate;)Z
intermediary method_19525
Lnet/minecraft/class_2837;method_19525(Ljava/util/function/Predicate;)Z
named accepts
Lnet/minecraft/world/chunk/Palette;accepts(Ljava/util/function/Predicate;)Z
-
getByIndex
- Specified by:
getByIndex
in interfacePalette<T>
- Mappings:
Namespace Name Mixin selector official a
Lckb;a(I)Ljava/lang/Object;
intermediary method_12288
Lnet/minecraft/class_2837;method_12288(I)Ljava/lang/Object;
named getByIndex
Lnet/minecraft/world/chunk/Palette;getByIndex(I)Ljava/lang/Object;
-
fromPacket
- Specified by:
fromPacket
in interfacePalette<T>
- Mappings:
Namespace Name Mixin selector official a
Lckb;a(Lnw;)V
intermediary method_12289
Lnet/minecraft/class_2837;method_12289(Lnet/minecraft/class_2540;)V
named fromPacket
Lnet/minecraft/world/chunk/Palette;fromPacket(Lnet/minecraft/network/PacketByteBuf;)V
-
toPacket
- Specified by:
toPacket
in interfacePalette<T>
- Mappings:
Namespace Name Mixin selector official b
Lckb;b(Lnw;)V
intermediary method_12287
Lnet/minecraft/class_2837;method_12287(Lnet/minecraft/class_2540;)V
named toPacket
Lnet/minecraft/world/chunk/Palette;toPacket(Lnet/minecraft/network/PacketByteBuf;)V
-
getPacketSize
public int getPacketSize()- Specified by:
getPacketSize
in interfacePalette<T>
- Mappings:
Namespace Name Mixin selector official a
Lckb;a()I
intermediary method_12290
Lnet/minecraft/class_2837;method_12290()I
named getPacketSize
Lnet/minecraft/world/chunk/Palette;getPacketSize()I
-
getSize
public int getSize()- Mappings:
Namespace Name Mixin selector official b
Lcjz;b()I
intermediary method_12282
Lnet/minecraft/class_2834;method_12282()I
named getSize
Lnet/minecraft/world/chunk/ArrayPalette;getSize()I
-
fromTag
-