Use non-deprecated constructor for BlockCanBuildEvent
Use toItemStack instead of deprecated Itemstack constructor
Add non-deprecated alternative to clear(int id, int data)