private boolean onHarvest(World worldIn, BlockPos pos, IBlockState state, EntityPlayer player)
{
BlockDoublePlant.EnumPlantType blockdoubleplant$enumplanttype = (BlockDoublePlant.EnumPlantType)state.getValue(VARIANT);
if (blockdoubleplant$enumplanttype != BlockDoublePlant.EnumPlantType.FERN && blockdoubleplant$enumplanttype != BlockDoublePlant.EnumPlantType.GRASS)
{
return false;
}
else
{
player.addStat(StatList.getBlockStats(this));
return true;
}
}
BlockDoublePlant.java 文件源码
java
阅读 31
收藏 0
点赞 0
评论 0
项目:CustomWorldGen
作者:
评论列表
文章目录