net.minecraft.client.texture.palette

public class ColorPalette

net.minecraft.client.resources.palette.Palette
net.minecraft.client.resources.palette.Palette
net.minecraft.class_1_1057
net.minecraft.client.texture.palette.ColorPalette

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
LOGGER
LOGGER
field_1_7440
LOGGER
public static final ColorPalette
EMPTY
EMPTY
field_1_7438
EMPTY
public static final ResourceFinder
ID_CONVERTER
ID_CONVERTER
field_1_7439
PALETTE_FINDER
private final int[]
colors
colors
field_1_7441
pixels

Constructor summary

ModifierConstructor
private (int[] pixels)

Method summary

Modifier and TypeMethod
public static CompletableFuture<Map<Identifier, ColorPalette>>
listAndLoad(ResourceManager resourceManager, Executor taskExecutor)
listAndLoad(ResourceManager resourceManager, Executor taskExecutor)
method_1_6693(class_3300 arg0, Executor arg1)
readAll(ResourceManager resourceManager, Executor executor)
private static ColorPalette
tryLoad(Identifier id, Resource resource)
tryLoad(Identifier id, Resource resource)
method_1_6697(class_2960 arg0, class_3298 arg1)
readImageOrEmpty(Identifier id, Resource imageResource)
public static ColorPalette
load(Resource resource)
load(Resource resource)
method_1_6694(class_3298 arg0)
readImage(Resource imageResource)
public static ColorPalette
from(NativeImage image)
from(NativeImage image)
method_1_6685(class_1011 arg0)
fromNativeImage(NativeImage image)
public static ColorPalette
of(int... colors)
of(int... colors)
method_1_6695(int... arg0)
of(int... colors)
public int
get(int index)
get(int index)
method_1_6686(int arg0)
get(int i)
public int
size()
size()
method_1_6696()
size()
public boolean
isEmpty()
isEmpty()
method_1_6687()
isEmpty()