本文整理汇总了Java中net.minecraft.block.BlockMycelium类的典型用法代码示例。如果您正苦于以下问题:Java BlockMycelium类的具体用法?Java BlockMycelium怎么用?Java BlockMycelium使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
BlockMycelium类属于net.minecraft.block包,在下文中一共展示了BlockMycelium类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: getFaceQuads
import net.minecraft.block.BlockMycelium; //导入依赖的package包/类
public static List getFaceQuads(IBlockAccess p_getFaceQuads_0_, IBlockState p_getFaceQuads_1_, BlockPos p_getFaceQuads_2_, EnumFacing p_getFaceQuads_3_, List p_getFaceQuads_4_)
{
if (p_getFaceQuads_3_ != EnumFacing.UP && p_getFaceQuads_3_ != EnumFacing.DOWN)
{
Block block = p_getFaceQuads_1_.getBlock();
return block instanceof BlockMycelium ? getFaceQuadsMycelium(p_getFaceQuads_0_, p_getFaceQuads_1_, p_getFaceQuads_2_, p_getFaceQuads_3_, p_getFaceQuads_4_) : (block instanceof BlockGrassPath ? getFaceQuadsGrassPath(p_getFaceQuads_0_, p_getFaceQuads_1_, p_getFaceQuads_2_, p_getFaceQuads_3_, p_getFaceQuads_4_) : (block instanceof BlockDirt ? getFaceQuadsDirt(p_getFaceQuads_0_, p_getFaceQuads_1_, p_getFaceQuads_2_, p_getFaceQuads_3_, p_getFaceQuads_4_) : (block instanceof BlockGrass ? getFaceQuadsGrass(p_getFaceQuads_0_, p_getFaceQuads_1_, p_getFaceQuads_2_, p_getFaceQuads_3_, p_getFaceQuads_4_) : p_getFaceQuads_4_)));
}
else
{
return p_getFaceQuads_4_;
}
}
开发者ID:sudofox,项目名称:Backmemed,代码行数:13,代码来源:BetterGrass.java
示例2: getFaceQuads
import net.minecraft.block.BlockMycelium; //导入依赖的package包/类
public static List getFaceQuads(IBlockAccess p_getFaceQuads_0_, Block p_getFaceQuads_1_, BlockPos p_getFaceQuads_2_, EnumFacing p_getFaceQuads_3_, List p_getFaceQuads_4_)
{
if (p_getFaceQuads_3_ != EnumFacing.UP && p_getFaceQuads_3_ != EnumFacing.DOWN)
{
if (p_getFaceQuads_1_ instanceof BlockMycelium)
{
return Config.isBetterGrassFancy() ? (getBlockAt(p_getFaceQuads_2_.down(), p_getFaceQuads_3_, p_getFaceQuads_0_) == Blocks.mycelium ? modelCubeMycelium.getFaceQuads(p_getFaceQuads_3_) : p_getFaceQuads_4_) : modelCubeMycelium.getFaceQuads(p_getFaceQuads_3_);
}
else
{
if (p_getFaceQuads_1_ instanceof BlockGrass)
{
Block block = p_getFaceQuads_0_.getBlockState(p_getFaceQuads_2_.up()).getBlock();
boolean flag = block == Blocks.snow || block == Blocks.snow_layer;
if (!Config.isBetterGrassFancy())
{
if (flag)
{
return modelCubeGrassSnowy.getFaceQuads(p_getFaceQuads_3_);
}
return modelCubeGrass.getFaceQuads(p_getFaceQuads_3_);
}
if (flag)
{
if (getBlockAt(p_getFaceQuads_2_, p_getFaceQuads_3_, p_getFaceQuads_0_) == Blocks.snow_layer)
{
return modelCubeGrassSnowy.getFaceQuads(p_getFaceQuads_3_);
}
}
else if (getBlockAt(p_getFaceQuads_2_.down(), p_getFaceQuads_3_, p_getFaceQuads_0_) == Blocks.grass)
{
return modelCubeGrass.getFaceQuads(p_getFaceQuads_3_);
}
}
return p_getFaceQuads_4_;
}
}
else
{
return p_getFaceQuads_4_;
}
}
开发者ID:SkidJava,项目名称:BaseClient,代码行数:47,代码来源:BetterGrass.java
注:本文中的net.minecraft.block.BlockMycelium类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论