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


Java ColorizerFoliage.getFoliageColorBasic方法代码示例

本文整理汇总了Java中net.minecraft.world.ColorizerFoliage.getFoliageColorBasic方法的典型用法代码示例。如果您正苦于以下问题:Java ColorizerFoliage.getFoliageColorBasic方法的具体用法?Java ColorizerFoliage.getFoliageColorBasic怎么用?Java ColorizerFoliage.getFoliageColorBasic使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在net.minecraft.world.ColorizerFoliage的用法示例。


在下文中一共展示了ColorizerFoliage.getFoliageColorBasic方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getRenderColor

import net.minecraft.world.ColorizerFoliage; //导入方法依赖的package包/类
@SideOnly(Side.CLIENT)
public int getRenderColor(IBlockState state)
{
    switch (variant)
    {
        case BIRCH:
            return ColorizerFoliage.getFoliageColorBirch();
        case SPRUCE:
            return ColorizerFoliage.getFoliageColorPine();
    }
    return ColorizerFoliage.getFoliageColorBasic();
}
 
开发者ID:gigaherz,项目名称:NaturalTrees,代码行数:13,代码来源:BlockBranch.java

示例2: getRenderColor

import net.minecraft.world.ColorizerFoliage; //导入方法依赖的package包/类
@Override
@SideOnly(Side.CLIENT)
/**
 * Returns the color this block should be rendered. Used by leaves.
 */
public int getRenderColor(int par1) {
	return (par1 & 3) == 1 ? ColorizerFoliage.getFoliageColorPine() : ((par1 & 3) == 2 ? ColorizerFoliage.getFoliageColorBirch() : ColorizerFoliage.getFoliageColorBasic());
}
 
开发者ID:jaredlll08,项目名称:MysticalTrinkets,代码行数:9,代码来源:BlockInfusedOakLeaves.java

示例3: getRenderColor

import net.minecraft.world.ColorizerFoliage; //导入方法依赖的package包/类
@SideOnly(Side.CLIENT)

    /**
     * Returns the color this block should be rendered. Used by leaves.
     */
    public int getRenderColor(int par1)
    {
        return ColorizerFoliage.getFoliageColorBasic();
    }
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:10,代码来源:BlockVine.java

示例4: getRenderColor

import net.minecraft.world.ColorizerFoliage; //导入方法依赖的package包/类
@SideOnly(Side.CLIENT)

    /**
     * Returns the color this block should be rendered. Used by leaves.
     */
    public int getRenderColor(int par1)
    {
        return (par1 & 3) == 1 ? ColorizerFoliage.getFoliageColorPine() : ((par1 & 3) == 2 ? ColorizerFoliage.getFoliageColorBirch() : ColorizerFoliage.getFoliageColorBasic());
    }
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:10,代码来源:BlockLeaves.java

示例5: getRenderColor

import net.minecraft.world.ColorizerFoliage; //导入方法依赖的package包/类
@SideOnly(Side.CLIENT)

    /**
     * Returns the color this block should be rendered. Used by leaves.
     */
    public int getRenderColor(int par1)
    {
        return par1 == 0 ? 16777215 : ColorizerFoliage.getFoliageColorBasic();
    }
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:10,代码来源:BlockTallGrass.java

示例6: colorMultiplier

import net.minecraft.world.ColorizerFoliage; //导入方法依赖的package包/类
@SideOnly(Side.CLIENT)
public int colorMultiplier(IBlockAccess world, int x, int y, int z) {

	TileLeaves leaves = getLeafTile(world, x, y, z);
	if (leaves == null)
		return ColorizerFoliage.getFoliageColorBasic();

	int colour = leaves.getFoliageColour();
	if(colour == PluginForestryArboriculture.proxy.getFoliageColorBasic())
		colour = world.getBiomeGenForCoords(x, z).getBiomeFoliageColor();

	return colour;
}
 
开发者ID:ForestryMC,项目名称:ForestryLegacy,代码行数:14,代码来源:BlockLeaves.java

示例7: getRenderColor

import net.minecraft.world.ColorizerFoliage; //导入方法依赖的package包/类
@SideOnly(Side.CLIENT)
/**
 * Returns the color this block should be rendered. Used by leaves.
 */
public int getRenderColor(int par1){
	return (par1&3)==1 ? ColorizerFoliage.getFoliageColorPine() : ((par1&3)==2 ? ColorizerFoliage.getFoliageColorBirch() : ColorizerFoliage.getFoliageColorBasic());
}
 
开发者ID:Danis98,项目名称:Veniocraft,代码行数:8,代码来源:BlockVenioLeaves.java

示例8: getBlockColor

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

示例9: getRenderColor

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

示例10: getBlockColor

import net.minecraft.world.ColorizerFoliage; //导入方法依赖的package包/类
public int getBlockColor() {
	return ColorizerFoliage.getFoliageColorBasic();
}
 
开发者ID:SkidJava,项目名称:BaseClient,代码行数:4,代码来源:BlockVine.java

示例11: getRenderColor

import net.minecraft.world.ColorizerFoliage; //导入方法依赖的package包/类
public int getRenderColor(IBlockState state) {
	return ColorizerFoliage.getFoliageColorBasic();
}
 
开发者ID:SkidJava,项目名称:BaseClient,代码行数:4,代码来源:BlockVine.java

示例12: getItemColorFunction

import net.minecraft.world.ColorizerFoliage; //导入方法依赖的package包/类
@Nullable
@Override
public Function2<ItemStack, Integer, Integer> getItemColorFunction() {
	return (stack, integer) -> ColorizerFoliage.getFoliageColorBasic();
}
 
开发者ID:TeamWizardry,项目名称:Wizardry,代码行数:6,代码来源:BlockWisdomLeaves.java

示例13: getBlockColorFunction

import net.minecraft.world.ColorizerFoliage; //导入方法依赖的package包/类
@Nullable
@Override
public Function4<IBlockState, IBlockAccess, BlockPos, Integer, Integer> getBlockColorFunction() {
	return (iBlockState, iBlockAccess, blockPos, integer) -> iBlockAccess != null && blockPos != null ? BiomeColorHelper.getFoliageColorAtPos(iBlockAccess, blockPos) : ColorizerFoliage.getFoliageColorBasic();
}
 
开发者ID:TeamWizardry,项目名称:Wizardry,代码行数:6,代码来源:BlockWisdomLeaves.java

示例14: getColorFromItemstack

import net.minecraft.world.ColorizerFoliage; //导入方法依赖的package包/类
@SideOnly(Side.CLIENT)
@Override
public int getColorFromItemstack(ItemStack stack, int tintIndex) {
    return ColorizerFoliage.getFoliageColorBasic();
}
 
开发者ID:Dark32,项目名称:NordMod,代码行数:6,代码来源:ItemBlockNordLeaves3.java

示例15: getRenderColor

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


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