Interface BlockColorProvider


@Environment(CLIENT) public interface BlockColorProvider
Mappings:
Namespace Name
official ekf
intermediary net/minecraft/class_322
named net/minecraft/client/color/block/BlockColorProvider
  • Method Details

    • getColor

      int getColor(BlockState state, @Nullable @Nullable BlockRenderView world, @Nullable @Nullable BlockPos pos, int tintIndex)
      Returns the color of the block state for the specified tint index, or -1 if not tinted.
      Returns:
      the color of the block state for the specified tint index, or -1 if not tinted
      Mappings:
      Namespace Name Mixin selector
      official getColor Lekf;getColor(Lcyt;Lciz;Lgp;I)I
      intermediary getColor Lnet/minecraft/class_322;getColor(Lnet/minecraft/class_2680;Lnet/minecraft/class_1920;Lnet/minecraft/class_2338;I)I
      named getColor Lnet/minecraft/client/color/block/BlockColorProvider;getColor(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockRenderView;Lnet/minecraft/util/math/BlockPos;I)I