コンストラクタと説明 |
---|
PaletteArray(ObjectIntIdentityMap<T> registryIn,
int bitsIn,
net.minecraft.util.palette.IResizeCallback<T> resizeHandlerIn,
java.util.function.Function<CompoundNBT,T> deserializerIn) |
修飾子とタイプ | メソッドと説明 |
---|---|
boolean |
contains(T value) |
T |
get(int indexKey)
Gets the block state by the palette id.
|
int |
getPaletteSize() |
int |
getSerializedSize() |
int |
idFor(T state) |
void |
read(ListNBT nbt) |
void |
read(PacketBuffer buf) |
void |
write(PacketBuffer buf) |
public PaletteArray(ObjectIntIdentityMap<T> registryIn, int bitsIn, net.minecraft.util.palette.IResizeCallback<T> resizeHandlerIn, java.util.function.Function<CompoundNBT,T> deserializerIn)
@Nullable public T get(int indexKey)
public void read(PacketBuffer buf)
public void write(PacketBuffer buf)
public int getSerializedSize()
getSerializedSize
インタフェース内 IPalette<T>
public int getPaletteSize()