Package net.minecraft.client.color.block
Class BlockColors
java.lang.Object
net.minecraft.client.color.block.BlockColors
@Environment(CLIENT) public class BlockColors extends Object
-
Field Summary
Fields Modifier and Type Field Description private Map<Block,Set<Property<?>>>propertiesprivate IdList<BlockColorProvider>providers -
Constructor Summary
Constructors Constructor Description BlockColors() -
Method Summary
Modifier and Type Method Description static BlockColorscreate()intgetColor(BlockState state, BlockRenderView world, BlockPos pos, int tint)intgetColor(BlockState state, World world, BlockPos pos)Set<Property<?>>getProperties(Block block)private voidregisterColorProperties(Set<Property<?>> properties, Block[] blocks)private voidregisterColorProperty(Property<?> property, Block[] blocks)voidregisterColorProvider(BlockColorProvider provider, Block[] blocks)
-
Field Details
-
providers
-
properties
-
-
Constructor Details
-
BlockColors
public BlockColors()
-
-
Method Details
-
create
-
getColor
-
getColor
public int getColor(BlockState state, @Nullable BlockRenderView world, @Nullable BlockPos pos, int tint) -
registerColorProvider
-
registerColorProperties
-
registerColorProperty
-
getProperties
-