IBlockColorSupplier
The IBlockColorSupplier function can be used to provide the Color Object to be used for whatever.
Importing the package
It might be required for you to import the package if you encounter any issues, so better be safe than sorry and add the import.
import mods.contenttweaker.IBlockColorSupplier;
Parameters
The IBlockColorSupplier Function is a function with following parameters.
- ICTBlockState state → the blockstate of the block whose color is being requested.
- IBlockAccess access → the block access of the block whose color is being requested.
- IBlockPos pos → the position of the block whose color is being requested.
- int tintIndex → the tint index, use that however you like. The function needs to return an Color Object.