minecraft-src/net/minecraft/world/inventory/RecipeBookMenu.java
2025-07-04 03:15:13 +03:00

25 lines
813 B
Java

package net.minecraft.world.inventory;
import net.minecraft.server.level.ServerLevel;
import net.minecraft.world.entity.player.Inventory;
import net.minecraft.world.entity.player.StackedItemContents;
import net.minecraft.world.item.crafting.RecipeHolder;
public abstract class RecipeBookMenu extends AbstractContainerMenu {
public RecipeBookMenu(MenuType<?> menuType, int i) {
super(menuType, i);
}
public abstract RecipeBookMenu.PostPlaceAction handlePlacement(
boolean useMaxItems, boolean isCreative, RecipeHolder<?> recipe, ServerLevel level, Inventory playerInventory
);
public abstract void fillCraftSlotsStackedContents(StackedItemContents stackedItemContents);
public abstract RecipeBookType getRecipeBookType();
public static enum PostPlaceAction {
NOTHING,
PLACE_GHOST_RECIPE;
}
}