Package net.minecraft.util.palette
Class HashMapPalette<T>
java.lang.Object
net.minecraft.util.palette.HashMapPalette<T>
- All Implemented Interfaces:
IPalette<T>
-
Field Summary
Modifier and TypeFieldDescriptionprivate final int
private final Function<CompoundNBT,
T> private final ObjectIntIdentityMap<T>
private final IResizeCallback<T>
private final IntIdentityHashBiMap<T>
private final Function<T,
CompoundNBT> -
Constructor Summary
ConstructorDescriptionHashMapPalette
(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 TypeMethodDescriptionint
int
getSize()
int
boolean
void
void
read
(PacketBuffer p_186038_1_) valueFor
(int p_186039_1_) void
void
write
(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:
getSerializedSize
in interfaceIPalette<T>
-
getSize
public int getSize() -
read
-
write
-