Programming Minecraft with anvil input?

Qu
5

I want to have an inventory where you can access all functions and there's one for example give so that you can give yourself items and I need an ID and I want to do it with an Anvil window that means I click on give then I first do the ID of the item or the English name depending on what is easier to program and then there's an anvil window with the amount you need but how can I make such an anvil window please for quick help thanks!

an

Just copy the code from the Anvil class. (The call is made when you right-click on an anvil)

Qu

Do I have to go to the libraries or how?

Lo

There's also an anvil api

Qu

For 12.2?

Lo