Package net.minecraft.util.palette
Class HashMapPalette<T>
java.lang.Object
net.minecraft.util.palette.HashMapPalette<T>
- All Implemented Interfaces:
IPalette<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intprivate final Function<CompoundNBT,T> private final ObjectIntIdentityMap<T>private final IResizeCallback<T>private final IntIdentityHashBiMap<T>private final Function<T,CompoundNBT> -
Constructor Summary
ConstructorsConstructorDescriptionHashMapPalette(ObjectIntIdentityMap<T> p_i48964_1_, int p_i48964_2_, IResizeCallback<T> p_i48964_3_, Function<CompoundNBT, T> p_i48964_4_, Function<T, CompoundNBT> p_i48964_5_) -
Method Summary
Modifier and TypeMethodDescriptionintintgetSize()intbooleanvoidvoidread(PacketBuffer p_186038_1_) valueFor(int p_186039_1_) voidvoidwrite(PacketBuffer p_186037_1_)
-
Field Details
-
registry
-
values
-
resizeHandler
-
reader
-
writer
-
bits
private final int bits
-
-
Constructor Details
-
HashMapPalette
public HashMapPalette(ObjectIntIdentityMap<T> p_i48964_1_, int p_i48964_2_, IResizeCallback<T> p_i48964_3_, Function<CompoundNBT, T> p_i48964_4_, Function<T, CompoundNBT> p_i48964_5_)
-
-
Method Details
-
idFor
-
maybeHas
-
valueFor
-
read
-
write
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfaceIPalette<T>
-
getSize
public int getSize() -
read
-
write
-