You should have your own Container and Gui. You will also need a GuiHandler which is a class that implements IGuiHandler. There are plenty of tutorials out there for those, as they haven't really changed much.
First time modding or first time using java. Why don't you look at the method applyBonemeal and see what the difference is between what you call, and what it is.