public class Palette extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Palette.Version |
| Constructor and Description |
|---|
Palette(int version,
boolean read) |
| Modifier and Type | Method and Description |
|---|---|
static int |
getBlocksPerWord(int paletteLength) |
static int |
getPalletInfo(Palette.Version version,
boolean runtime) |
static int |
getVersion(int paletteInfo) |
static boolean |
isRuntime(int paletteInfo) |
short[] |
readIndexes() |
void |
writeIndexes(io.netty.buffer.ByteBuf buf,
short[] indexes) |
public void writeIndexes(io.netty.buffer.ByteBuf buf,
short[] indexes)
public short[] readIndexes()
public static boolean isRuntime(int paletteInfo)
public static int getVersion(int paletteInfo)
public static int getPalletInfo(Palette.Version version, boolean runtime)
public static int getBlocksPerWord(int paletteLength)
Copyright © 2017–2019 NukkitX. All rights reserved.