public final class ColorGetter extends java.lang.Object implements IColorHelper
Modifier and Type | Field and Description |
---|---|
static ColorGetter |
INSTANCE |
Modifier and Type | Method and Description |
---|---|
static java.lang.String[] |
getColorDefaults() |
static java.util.List<java.lang.Integer> |
getColors(net.minecraft.item.ItemStack itemStack,
int colorCount) |
java.util.List<java.lang.Integer> |
getColors(net.minecraft.client.renderer.texture.TextureAtlasSprite textureAtlasSprite,
int renderColor,
int colorCount)
Gets the "main" colors of a given sprite when overlayed with a specific tint color.
|
public static final ColorGetter INSTANCE
public static java.lang.String[] getColorDefaults()
public static java.util.List<java.lang.Integer> getColors(net.minecraft.item.ItemStack itemStack, int colorCount)
public java.util.List<java.lang.Integer> getColors(net.minecraft.client.renderer.texture.TextureAtlasSprite textureAtlasSprite, int renderColor, int colorCount)
IColorHelper
getColors
in interface IColorHelper
textureAtlasSprite
- Sprite to extract main colors from.renderColor
- Overlay/tint color that is applied to the sprite.colorCount
- Number of "main" colors to get.