public interface IColorHelper
IIngredientHelper.getColors(Object)
.
Get an instance from IModIngredientRegistration.getColorHelper()
Modifier and Type | Method and Description |
---|---|
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.
|
java.util.List<java.lang.Integer> getColors(net.minecraft.client.renderer.texture.TextureAtlasSprite textureAtlasSprite, int renderColor, int colorCount)
textureAtlasSprite
- Sprite to extract main colors from.renderColor
- Overlay/tint color that is applied to the sprite.colorCount
- Number of "main" colors to get.