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 player, @Nullable RecipeHolder<R> recipe, boolean placeAll)
    • clearGrid

      protected void clearGrid()
    • handleRecipeClicked

      protected void handleRecipeClicked(RecipeHolder<R> recipe, boolean placeAll)
    • addItemToSlot

      public void addItemToSlot(Integer item, int p_slot, int maxAmount, int x, int y)
      Specified by:
      addItemToSlot in interface PlaceRecipe<I extends RecipeInput>
    • getStackSize

      protected int getStackSize(boolean placeAll, int maxPossible, boolean recipeMatches)
    • moveItemToGrid

      protected int moveItemToGrid(Slot slot, ItemStack stack, int maxAmount)
    • testClearGrid

      private boolean testClearGrid()
    • getAmountOfFreeSlotsInInventory

      private int getAmountOfFreeSlotsInInventory()