类 BlockColors
java.lang.Object
net.minecraft.client.color.block.BlockColors
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private void
addColoringState
(Property<?> pProperty, Block... pBlocks) private void
addColoringStates
(Set<Property<?>> pProperties, Block... pBlocks) static BlockColors
int
getColor
(BlockState pState, BlockAndTintGetter pLevel, BlockPos pPos, int pTintIndex) int
getColor
(BlockState pState, Level pLevel, BlockPos pPos) getColoringProperties
(Block pBlock) void
register
(BlockColor pBlockColor, Block... pBlocks) 已过时。
-
字段详细资料
-
DEFAULT
private static final int DEFAULT- 另请参阅:
-
blockColors
-
coloringStates
-
-
构造器详细资料
-
BlockColors
public BlockColors()
-
-
方法详细资料
-
createDefault
-
getColor
-
getColor
public int getColor(BlockState pState, @Nullable BlockAndTintGetter pLevel, @Nullable BlockPos pPos, int pTintIndex) -
register
已过时。Register viaRegisterColorHandlersEvent.Block
-
addColoringStates
-
addColoringState
-
getColoringProperties
-
RegisterColorHandlersEvent.Block