本文整理汇总了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();
}
示例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());
}
示例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();
}
示例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());
}
示例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();
}
示例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;
}
示例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());
}
示例8: getBlockColor
import net.minecraft.world.ColorizerFoliage; //导入方法依赖的package包/类
public int getBlockColor()
{
return ColorizerFoliage.getFoliageColorBasic();
}
示例9: getRenderColor
import net.minecraft.world.ColorizerFoliage; //导入方法依赖的package包/类
public int getRenderColor(IBlockState state)
{
return ColorizerFoliage.getFoliageColorBasic();
}
示例10: getBlockColor
import net.minecraft.world.ColorizerFoliage; //导入方法依赖的package包/类
public int getBlockColor() {
return ColorizerFoliage.getFoliageColorBasic();
}
示例11: getRenderColor
import net.minecraft.world.ColorizerFoliage; //导入方法依赖的package包/类
public int getRenderColor(IBlockState state) {
return ColorizerFoliage.getFoliageColorBasic();
}
示例12: getItemColorFunction
import net.minecraft.world.ColorizerFoliage; //导入方法依赖的package包/类
@Nullable
@Override
public Function2<ItemStack, Integer, Integer> getItemColorFunction() {
return (stack, integer) -> ColorizerFoliage.getFoliageColorBasic();
}
示例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();
}
示例14: getColorFromItemstack
import net.minecraft.world.ColorizerFoliage; //导入方法依赖的package包/类
@SideOnly(Side.CLIENT)
@Override
public int getColorFromItemstack(ItemStack stack, int tintIndex) {
return ColorizerFoliage.getFoliageColorBasic();
}
示例15: getRenderColor
import net.minecraft.world.ColorizerFoliage; //导入方法依赖的package包/类
@Override
@SideOnly(Side.CLIENT)
public int getRenderColor(IBlockState state)
{
return ColorizerFoliage.getFoliageColorBasic();
}