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

Method getColor

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

Source from the content-addressed store, hash-verified

102 private static final CustomColors.IColorizer COLORIZER_GRASS = new CustomColors.IColorizer()
103 {
104 public int getColor(IBlockState blockState, IBlockAccess blockAccess, BlockPos blockPos)
105 {
106 BiomeGenBase biomegenbase = CustomColors.getColorBiome(blockAccess, blockPos);
107 return CustomColors.swampGrassColors != null && biomegenbase == BiomeGenBase.swampland ? CustomColors.swampGrassColors.getColor(biomegenbase, blockPos) : biomegenbase.getGrassColorAtPos(blockPos);
108 }
109 public boolean isColorConstant()
110 {
111 return false;

Callers

nothing calls this directly

Calls 8

getColorBiomeMethod · 0.95
getGrassColorAtPosMethod · 0.95
getFoliageColorAtPosMethod · 0.95
getFoliageColorPineMethod · 0.95
getFoliageColorBirchMethod · 0.95
callIntMethod · 0.95
getColorMethod · 0.65
existsMethod · 0.45

Tested by

no test coverage detected