当前位置: 首页>>代码示例>>Java>>正文


Java ColorizerFoliage.getFoliageColor方法代码示例

本文整理汇总了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);
		}
	}
}
 
开发者ID:tom5454,项目名称:Toms-Mod,代码行数:19,代码来源:BlockColourGen.java

示例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);
}
 
开发者ID:MinecraftModdedClients,项目名称:Resilience-Client-Source,代码行数:10,代码来源:BiomeGenBase.java

示例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);
}
 
开发者ID:TheAwesomeGem,项目名称:MineFantasy,代码行数:8,代码来源:BlockLeavesMF.java

示例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);
}
 
开发者ID:soultek101,项目名称:projectzulu1.7.10-pre-1.3a,代码行数:8,代码来源:BlockPalmTreeLeaves.java

示例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);
}
 
开发者ID:jaredlll08,项目名称:MysticalTrinkets,代码行数:8,代码来源:BlockInfusedOakLeaves.java

示例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;
    }
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:12,代码来源:BiomeGenSwamp.java

示例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);
}
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:7,代码来源:BiomeGenBase.java

示例8: getBlockColor

import net.minecraft.world.ColorizerFoliage; //导入方法依赖的package包/类
public int getBlockColor()
{
    return ColorizerFoliage.getFoliageColor(0.5D, 1.0D);
}
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:5,代码来源:BlockLeaves.java

示例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);
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:7,代码来源:Biome.java

示例10: getBlockColor

import net.minecraft.world.ColorizerFoliage; //导入方法依赖的package包/类
@SideOnly(Side.CLIENT)
public int getBlockColor(IBlockState state)
{
    return ColorizerFoliage.getFoliageColor(0.5D, 1.0D);
}
 
开发者ID:gigaherz,项目名称:NaturalTrees,代码行数:6,代码来源:BlockBranch.java

示例11: getBlockColor

import net.minecraft.world.ColorizerFoliage; //导入方法依赖的package包/类
@Override
@SideOnly(Side.CLIENT)
public int getBlockColor()
{
	return ColorizerFoliage.getFoliageColor(0.5D, 1.0D);
}
 
开发者ID:MinestrapTeam,项目名称:Minestrappolation-4,代码行数:7,代码来源:MBlockLeavesBase.java

示例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);
}
 
开发者ID:ExtrabiomesXL,项目名称:EBXS-AutumnWoods,代码行数:7,代码来源:BiomeAutumnWoods.java

示例13: getBlockColor

import net.minecraft.world.ColorizerFoliage; //导入方法依赖的package包/类
public int getBlockColor()
{
    double var1 = 0.5D;
    double var3 = 1.0D;
    return ColorizerFoliage.getFoliageColor(var1, var3);
}
 
开发者ID:MinecraftModdedClients,项目名称:Resilience-Client-Source,代码行数:7,代码来源:BlockLeaves.java

示例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);
}
 
开发者ID:ForestryMC,项目名称:ForestryLegacy,代码行数:7,代码来源:BlockLeaves.java

示例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);
}
 
开发者ID:MadPC,项目名称:Coffee,代码行数:7,代码来源:BlockCoffeeLeaves.java


注:本文中的net.minecraft.world.ColorizerFoliage.getFoliageColor方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。