类 ServerPlaceRecipe<C extends Container>

java.lang.Object
net.minecraft.recipebook.ServerPlaceRecipe<C>
所有已实现的接口:
PlaceRecipe<Integer>

public class ServerPlaceRecipe<C extends Container> extends Object implements PlaceRecipe<Integer>
  • 字段详细资料

  • 构造器详细资料

  • 方法详细资料

    • recipeClicked

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

      protected void clearGrid()
    • handleRecipeClicked

      protected void handleRecipeClicked(Recipe<C> pRecipe, boolean pPlaceAll)
    • addItemToSlot

      public void addItemToSlot(Iterator<Integer> pIngredients, int pSlot, int pMaxAmount, int pY, int pX)
      指定者:
      addItemToSlot 在接口中 PlaceRecipe<C extends Container>
    • getStackSize

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

      protected void moveItemToGrid(Slot pSlotToFill, ItemStack pIngredient)
    • testClearGrid

      private boolean testClearGrid()
    • getAmountOfFreeSlotsInInventory

      private int getAmountOfFreeSlotsInInventory()