Class Palette
java.lang.Object
net.minecraft.client.resources.palette.Palette
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int[]static final Palettestatic final FileToIdConverterprivate static final org.slf4j.Logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Palettefrom(NativeImage image) intget(int index) booleanisEmpty()static CompletableFuture<Map<Identifier, Palette>> listAndLoad(ResourceManager resourceManager, Executor taskExecutor) static Palettestatic Paletteof(int... colors) intsize()private static PalettetryLoad(Identifier id, Resource resource)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
EMPTY
-
ID_CONVERTER
-
colors
private final int[] colors
-
-
Constructor Details
-
Palette
private Palette(int[] colors)
-
-
Method Details
-
listAndLoad
public static CompletableFuture<Map<Identifier, Palette>> listAndLoad(ResourceManager resourceManager, Executor taskExecutor) -
tryLoad
-
load
- Throws:
IOException
-
from
-
of
-
get
public int get(int index) -
size
public int size() -
isEmpty
public boolean isEmpty()
-