https://wiki.mcjty.eu/modding/index.php?title=GUI-1.12
In the TestContainerBlock class, the onBlockActivated method doesn't(or no longer?) need the parameter ItemStack heldItem .
Edit: After looking some more, the wiki is also missing the entire drawScreen method.
The code in the repo has the correct version.