public class BlockColors
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.Map<IRegistryDelegate<Block>,IBlockColor> |
colors |
private java.util.Map<Block,java.util.Set<IProperty<?>>> |
colorStates |
Constructor and Description |
---|
BlockColors() |
Modifier and Type | Method and Description |
---|---|
private void |
addColorState(IProperty<?> propertyIn,
Block... blocksIn) |
private void |
addColorStates(java.util.Set<IProperty<?>> propertiesIn,
Block... blocksIn) |
int |
getColor(BlockState blockStateIn,
ILightReader lightReaderIn,
BlockPos blockPosIn,
int tintIndexIn) |
int |
getColorOrMaterialColor(BlockState state,
World worldIn,
BlockPos blockPosIn) |
java.util.Set<IProperty<?>> |
getColorProperties(Block blockIn) |
static BlockColors |
init() |
void |
register(IBlockColor blockColor,
Block... blocksIn) |
private final java.util.Map<IRegistryDelegate<Block>,IBlockColor> colors
public static BlockColors init()
public int getColorOrMaterialColor(BlockState state, World worldIn, BlockPos blockPosIn)
public int getColor(BlockState blockStateIn, @Nullable ILightReader lightReaderIn, @Nullable BlockPos blockPosIn, int tintIndexIn)
public void register(IBlockColor blockColor, Block... blocksIn)
private void addColorStates(java.util.Set<IProperty<?>> propertiesIn, Block... blocksIn)