(World worldIn, EntityPlayer player, BlockPos pos, IBlockState state, TileEntity te)
| 414 | } |
| 415 | |
| 416 | public void harvestBlock(World worldIn, EntityPlayer player, BlockPos pos, IBlockState state, TileEntity te) |
| 417 | { |
| 418 | if (!worldIn.isRemote && player.getCurrentEquippedItem() != null && player.getCurrentEquippedItem().getItem() == Items.shears) |
| 419 | { |
| 420 | player.triggerAchievement(StatList.mineBlockStatArray[Block.getIdFromBlock(this)]); |
| 421 | spawnAsEntity(worldIn, pos, new ItemStack(Blocks.vine, 1, 0)); |
| 422 | } |
| 423 | else |
| 424 | { |
| 425 | super.harvestBlock(worldIn, player, pos, state, te); |
| 426 | } |
| 427 | } |
| 428 | |
| 429 | public EnumWorldBlockLayer getBlockLayer() |
| 430 | { |
nothing calls this directly
no test coverage detected