Ejemplo n.º 1
0
 public int colorMultiplier(
     IBlockState state,
     @Nullable IBlockAccess blockAccess,
     @Nullable BlockPos pos,
     int renderPass) {
   IBlockColor iblockcolor = (IBlockColor) this.blockColorMap.get(state.getBlock().delegate);
   return iblockcolor == null
       ? -1
       : iblockcolor.colorMultiplier(state, blockAccess, pos, renderPass);
 }
Ejemplo n.º 2
0
  public int func_189991_a(IBlockState p_189991_1_) {
    IBlockColor iblockcolor = (IBlockColor) this.blockColorMap.get(p_189991_1_.getBlock().delegate);

    if (iblockcolor != null) {
      return iblockcolor.colorMultiplier(p_189991_1_, (IBlockAccess) null, (BlockPos) null, 0);
    } else {
      MapColor mapcolor = p_189991_1_.getMapColor();
      return mapcolor != null ? mapcolor.colorValue : -1;
    }
  }