本文整理汇总了Java中net.minecraft.world.ColorizerFoliage.getFoliageColor方法的典型用法代码示例。如果您正苦于以下问题:Java ColorizerFoliage.getFoliageColor方法的具体用法?Java ColorizerFoliage.getFoliageColor怎么用?Java ColorizerFoliage.getFoliageColor使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类net.minecraft.world.ColorizerFoliage
的用法示例。
在下文中一共展示了ColorizerFoliage.getFoliageColor方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: genBiomeColours
import net.minecraft.world.ColorizerFoliage; //导入方法依赖的package包/类
private static void genBiomeColours(BlockColours bc) {
// generate array of foliage, grass, and water colour multipliers
// for each biome.
for (Object oBiome : Biome.REGISTRY) {
Biome biome = (Biome) oBiome;
if (biome != null) {
double temp = MathHelper.clamp(biome.getTemperature(), 0.0F, 1.0F);
double rain = MathHelper.clamp(biome.getRainfall(), 0.0F, 1.0F);
int grasscolor = ColorizerGrass.getGrassColor(temp, rain);
int foliagecolor = ColorizerFoliage.getFoliageColor(temp, rain);
int watercolor = biome.getWaterColorMultiplier();
bc.setBiomeData(biome.getBiomeName(), watercolor & 0xffffff, grasscolor & 0xffffff, foliagecolor & 0xffffff);
}
}
}
示例2: getBiomeFoliageColor
import net.minecraft.world.ColorizerFoliage; //导入方法依赖的package包/类
/**
* Provides the basic foliage color based on the biome temperature and rainfall
*/
public int getBiomeFoliageColor(int p_150571_1_, int p_150571_2_, int p_150571_3_)
{
double var4 = (double)MathHelper.clamp_float(this.getFloatTemperature(p_150571_1_, p_150571_2_, p_150571_3_), 0.0F, 1.0F);
double var6 = (double)MathHelper.clamp_float(this.getFloatRainfall(), 0.0F, 1.0F);
return ColorizerFoliage.getFoliageColor(var4, var6);
}
示例3: getBlockColor
import net.minecraft.world.ColorizerFoliage; //导入方法依赖的package包/类
@SideOnly(Side.CLIENT)
public int getBlockColor()
{
double d0 = 0.5D;
double d1 = 1.0D;
return ColorizerFoliage.getFoliageColor(d0, d1);
}
示例4: getBlockColor
import net.minecraft.world.ColorizerFoliage; //导入方法依赖的package包/类
@Override
@SideOnly(Side.CLIENT)
public int getBlockColor() {
double var1 = 0.5D;
double var3 = 1.0D;
return ColorizerFoliage.getFoliageColor(var1, var3);
}
示例5: getBlockColor
import net.minecraft.world.ColorizerFoliage; //导入方法依赖的package包/类
@Override
@SideOnly(Side.CLIENT)
public int getBlockColor() {
double d0 = 0.5D;
double d1 = 1.0D;
return ColorizerFoliage.getFoliageColor(d0, d1);
}
示例6: getBiomeFoliageColor
import net.minecraft.world.ColorizerFoliage; //导入方法依赖的package包/类
@SideOnly(Side.CLIENT)
/**
* Provides the basic foliage color based on the biome temperature and rainfall
*/
public int getBiomeFoliageColor()
{
double d0 = (double)this.getFloatTemperature();
double d1 = (double)this.getFloatRainfall();
return ((ColorizerFoliage.getFoliageColor(d0, d1) & 16711422) + 5115470) / 2;
}
示例7: getFoliageColorAtPos
import net.minecraft.world.ColorizerFoliage; //导入方法依赖的package包/类
public int getFoliageColorAtPos(BlockPos pos)
{
double d0 = (double)MathHelper.clamp_float(this.getFloatTemperature(pos), 0.0F, 1.0F);
double d1 = (double)MathHelper.clamp_float(this.getFloatRainfall(), 0.0F, 1.0F);
return ColorizerFoliage.getFoliageColor(d0, d1);
}
示例8: getBlockColor
import net.minecraft.world.ColorizerFoliage; //导入方法依赖的package包/类
public int getBlockColor()
{
return ColorizerFoliage.getFoliageColor(0.5D, 1.0D);
}
示例9: getFoliageColorAtPos
import net.minecraft.world.ColorizerFoliage; //导入方法依赖的package包/类
public int getFoliageColorAtPos(BlockPos pos)
{
double d0 = (double)MathHelper.clamp(this.getFloatTemperature(pos), 0.0F, 1.0F);
double d1 = (double)MathHelper.clamp(this.getRainfall(), 0.0F, 1.0F);
return ColorizerFoliage.getFoliageColor(d0, d1);
}
示例10: getBlockColor
import net.minecraft.world.ColorizerFoliage; //导入方法依赖的package包/类
@SideOnly(Side.CLIENT)
public int getBlockColor(IBlockState state)
{
return ColorizerFoliage.getFoliageColor(0.5D, 1.0D);
}
示例11: getBlockColor
import net.minecraft.world.ColorizerFoliage; //导入方法依赖的package包/类
@Override
@SideOnly(Side.CLIENT)
public int getBlockColor()
{
return ColorizerFoliage.getFoliageColor(0.5D, 1.0D);
}
示例12: getBiomeFoliageColor
import net.minecraft.world.ColorizerFoliage; //导入方法依赖的package包/类
@Override
@SideOnly(Side.CLIENT)
public int getBiomeFoliageColor(int x, int y, int z)
{
return ColorizerFoliage.getFoliageColor(1.0F, 0.1F);
}
示例13: getBlockColor
import net.minecraft.world.ColorizerFoliage; //导入方法依赖的package包/类
public int getBlockColor()
{
double var1 = 0.5D;
double var3 = 1.0D;
return ColorizerFoliage.getFoliageColor(var1, var3);
}
示例14: getBlockColor
import net.minecraft.world.ColorizerFoliage; //导入方法依赖的package包/类
@SideOnly(Side.CLIENT)
public int getBlockColor() {
double var1 = 0.5D;
double var3 = 1.0D;
return ColorizerFoliage.getFoliageColor(var1, var3);
}
示例15: getBlockColor
import net.minecraft.world.ColorizerFoliage; //导入方法依赖的package包/类
@SideOnly(Side.CLIENT)
public int getBlockColor(){
double d0 = 0.5D;
double d1 = 1.0D;
return ColorizerFoliage.getFoliageColor(d0, d1);
}