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

25 lines
823 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 containerId) {
super(menuType, containerId);
}
public abstract RecipeBookMenu.PostPlaceAction handlePlacement(
boolean bl, boolean bl2, RecipeHolder<?> recipeHolder, ServerLevel serverLevel, Inventory inventory
);
public abstract void fillCraftSlotsStackedContents(StackedItemContents stackedItemContents);
public abstract RecipeBookType getRecipeBookType();
public static enum PostPlaceAction {
NOTHING,
PLACE_GHOST_RECIPE;
}
}