Class ServerPlaceRecipe<I extends RecipeInput,R extends Recipe<I>>

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

public class ServerPlaceRecipe<I extends RecipeInput,R extends Recipe<I>> extends Object implements PlaceRecipe<Integer>
  • Field Details

  • Constructor Details

  • Method Details

    • recipeClicked

      public void recipeClicked(ServerPlayer pPlayer, @Nullable RecipeHolder<R> pRecipe, boolean pPlaceAll)
    • clearGrid

      protected void clearGrid()
    • handleRecipeClicked

      protected void handleRecipeClicked(RecipeHolder<R> pRecipe, boolean pPlaceAll)
    • addItemToSlot

      public void addItemToSlot(Integer pItem, int pSlot, int pMaxAmount, int pX, int pY)
      Specified by:
      addItemToSlot in interface PlaceRecipe<I extends RecipeInput>
    • getStackSize

      protected int getStackSize(boolean pPlaceAll, int pMaxPossible, boolean pRecipeMatches)
    • moveItemToGrid

      protected int moveItemToGrid(Slot pSlot, ItemStack pStack, int pMaxAmount)
    • testClearGrid

      private boolean testClearGrid()
    • getAmountOfFreeSlotsInInventory

      private int getAmountOfFreeSlotsInInventory()