类 RecipeBookMenu<C extends Container>

java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
net.minecraft.world.inventory.RecipeBookMenu<C>
直接已知子类:
AbstractFurnaceMenu, CraftingMenu, InventoryMenu

public abstract class RecipeBookMenu<C extends Container> extends AbstractContainerMenu
  • 构造器详细资料

    • RecipeBookMenu

      public RecipeBookMenu(MenuType<?> pMenuType, int pContainerId)
  • 方法详细资料

    • handlePlacement

      public void handlePlacement(boolean pPlaceAll, Recipe<?> pRecipe, ServerPlayer pPlayer)
    • fillCraftSlotsStackedContents

      public abstract void fillCraftSlotsStackedContents(StackedContents pItemHelper)
    • clearCraftingContent

      public abstract void clearCraftingContent()
    • recipeMatches

      public abstract boolean recipeMatches(Recipe<? super C> pRecipe)
    • getResultSlotIndex

      public abstract int getResultSlotIndex()
    • getGridWidth

      public abstract int getGridWidth()
    • getGridHeight

      public abstract int getGridHeight()
    • getSize

      public abstract int getSize()
    • getRecipeBookCategories

      public List<RecipeBookCategories> getRecipeBookCategories()
    • getRecipeBookType

      public abstract RecipeBookType getRecipeBookType()
    • shouldMoveToInventory

      public abstract boolean shouldMoveToInventory(int pSlotIndex)