RecipeBookMenu .java

net.minecraft.world.inventory.RecipeBookMenu (class): members: PostPlaceAction, fillCraftSlotsStackedContents, handlePlacement, getRecipeBookType, level.

net.minecraft.world.inventoryclass26 linescommonextends AbstractContainerMenu843 B

API Surface (0)

No public/protected methods detected (fields or constants only).

Fields & Constants (1)

level

Full Source

RecipeBookMenu.java26 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.world.inventory;
2
3
import net.minecraft.server.level.ServerLevel;
4
import net.minecraft.world.entity.player.Inventory;
5
import net.minecraft.world.entity.player.StackedItemContents;
6
import net.minecraft.world.item.crafting.RecipeHolder;
7
8
public abstract class RecipeBookMenu extends AbstractContainerMenu {
9
	public RecipeBookMenu(final MenuType<?> menuType, final int containerId) {
10
		super(menuType, containerId);
11
	}
12
13
	public abstract RecipeBookMenu.PostPlaceAction handlePlacement(
14
		boolean useMaxItems, boolean allowDroppingItemsToClear, RecipeHolder<?> recipe, ServerLevel level, Inventory inventory
15
	);
16
17
	public abstract void fillCraftSlotsStackedContents(StackedItemContents stackedContents);
18
19
	public abstract RecipeBookType getRecipeBookType();
20
21
	public enum PostPlaceAction {
22
		NOTHING,
23
		PLACE_GHOST_RECIPE;
24
	}
25
}
26

Decompiled Minecraft 26.3 source of RecipeBookMenu (net/minecraft/world/inventory/RecipeBookMenu.java) with Mojang official mappings, stored verbatim on the site.