MCPcopy Create free account
hub / github.com/DGVPSH/SlackOpen / getFluidColor

Method getFluidColor

src/main/java/net/optifine/CustomColors.java:996–1007  ·  view source on GitHub ↗
(IBlockAccess blockAccess, IBlockState blockState, BlockPos blockPos, RenderEnv renderEnv)

Source from the content-addressed store, hash-verified

994 }
995
996 public static int getFluidColor(IBlockAccess blockAccess, IBlockState blockState, BlockPos blockPos, RenderEnv renderEnv)
997 {
998 Block block = blockState.getBlock();
999 CustomColors.IColorizer customcolors$icolorizer = getBlockColormap(blockState);
1000
1001 if (customcolors$icolorizer == null && blockState.getBlock().getMaterial() == Material.water)
1002 {
1003 customcolors$icolorizer = COLORIZER_WATER;
1004 }
1005
1006 return customcolors$icolorizer == null ? block.colorMultiplier(blockAccess, blockPos, 0) : (Config.isSmoothBiomes() && !customcolors$icolorizer.isColorConstant() ? getSmoothColorMultiplier(blockState, blockAccess, blockPos, customcolors$icolorizer, renderEnv.getColorizerBlockPosM()) : customcolors$icolorizer.getColor(blockState, blockAccess, blockPos));
1007 }
1008
1009 public static void updatePortalFX(EntityFX fx)
1010 {

Callers 2

updateWaterFXMethod · 0.95
renderFluidMethod · 0.95

Calls 9

getBlockColormapMethod · 0.95
colorMultiplierMethod · 0.95
isSmoothBiomesMethod · 0.95
getColorizerBlockPosMMethod · 0.80
getBlockMethod · 0.65
isColorConstantMethod · 0.65
getColorMethod · 0.65
getMaterialMethod · 0.45

Tested by

no test coverage detected