1.16.5 Recipe with ItemStacks?

Discussion in 'Spigot Plugin Development' started by TaskID, Nov 6, 2020.

  1. Hello, I wondered how to create recipes with ItemStacks as ingredient.
    Code (Java):
    recipe.setIngredient(key, new RecipeChoice.ExactChoice(itemStack));
    This is working, but deprecated (ExactChoice is deprecated). How would I set an Ingredient with an ItemStack?
     
  2. It is deprecated because it is a draft API and subject to change. There is no other way, and what you're currently doing, is the way to go.
     
  3. But it is implemented since 1.13, how can this be a draft?