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

Method getColorBiome

src/main/java/net/optifine/CustomColors.java:911–921  ·  view source on GitHub ↗
(IBlockAccess blockAccess, BlockPos blockPos)

Source from the content-addressed store, hash-verified

909 }
910
911 protected static BiomeGenBase getColorBiome(IBlockAccess blockAccess, BlockPos blockPos)
912 {
913 BiomeGenBase biomegenbase = blockAccess.getBiomeGenForCoords(blockPos);
914
915 if (biomegenbase == BiomeGenBase.swampland && !Config.isSwampColors())
916 {
917 biomegenbase = BiomeGenBase.plains;
918 }
919
920 return biomegenbase;
921 }
922
923 private static CustomColormap getBlockColormap(IBlockState blockState)
924 {

Callers 2

getColorMethod · 0.95
getColorMethod · 0.95

Calls 2

isSwampColorsMethod · 0.95
getBiomeGenForCoordsMethod · 0.65

Tested by

no test coverage detected