Class ServerPlaceRecipe<C extends Container>

java.lang.Object
net.minecraft.recipebook.ServerPlaceRecipe<C>
All Implemented Interfaces:
PlaceRecipe<Integer>

public class ServerPlaceRecipe<C extends Container> extends Object implements PlaceRecipe<Integer>
  • Field Details

  • Constructor Details

    • ServerPlaceRecipe

      public ServerPlaceRecipe(RecipeBookMenu<C> p_135431_)
  • Method Details

    • recipeClicked

      public void recipeClicked(ServerPlayer p_135435_, @Nullable RecipeHolder<? extends Recipe<C>> p_298963_, boolean p_135437_)
    • clearGrid

      protected void clearGrid()
    • handleRecipeClicked

      protected void handleRecipeClicked(RecipeHolder<? extends Recipe<C>> p_298652_, boolean p_135442_)
    • addItemToSlot

      public void addItemToSlot(Iterator<Integer> p_135444_, int p_135445_, int p_135446_, int p_135447_, int p_135448_)
      Specified by:
      addItemToSlot in interface PlaceRecipe<C extends Container>
    • getStackSize

      protected int getStackSize(boolean p_135450_, int p_135451_, boolean p_135452_)
    • moveItemToGrid

      protected void moveItemToGrid(Slot p_135439_, ItemStack p_135440_)
    • testClearGrid

      private boolean testClearGrid()
    • getAmountOfFreeSlotsInInventory

      private int getAmountOfFreeSlotsInInventory()