/** * Spawns the block's drops in the world. By the time this is called the Block has possibly been set to air via * Block.removedByPlayer * * @param worldIn the world in * @param player the player * @param pos the pos * @param state the state * @param te the te * @param stack the stack */ @Override public void harvestBlock(World worldIn, EntityPlayer player, BlockPos pos, IBlockState state, @Nullable TileEntity te, ItemStack stack) { if (!worldIn.isRemote && stack.getItem() == Items.SHEARS) { player.addStat(StatList.getBlockStats(this)); } else { super.harvestBlock(worldIn, player, pos, state, te, stack); } }