/// <summary> /// Provides the basic grass color based on the biome temperature and rainfall /// </summary> public override int GetBiomeGrassColor() { double d = GetFloatTemperature(); double d1 = GetFloatRainfall(); return(((ColorizerGrass.GetGrassColor(d, d1) & 0xfefefe) + 0x4e0e4e) / 2); }
public override int GetBlockColor() { double d = 0.5D; double d1 = 1.0D; return(ColorizerGrass.GetGrassColor(d, d1)); }
/// <summary> /// Provides the basic grass color based on the biome temperature and rainfall /// </summary> public virtual int GetBiomeGrassColor() { double d = MathHelper2.Clamp_float(GetFloatTemperature(), 0.0F, 1.0F); double d1 = MathHelper2.Clamp_float(GetFloatRainfall(), 0.0F, 1.0F); return(ColorizerGrass.GetGrassColor(d, d1)); }