RecipeInput .java

net.minecraft.world.item.crafting.RecipeInput (interface, 20 lines): interface declaring 3 methods. members: getItem, isEmpty, size. imports: ItemStack.

net.minecraft.world.item.craftinginterface20 linescommon321 B

API Surface (0)

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

Code Graph: Dependencies (1)

Edges (calls / imports / inherits / references) resolved by graphify from the AST. Every chip opens the class source.

Full Source

RecipeInput.java20 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.world.item.crafting;
2
3
import net.minecraft.world.item.ItemStack;
4
5
public interface RecipeInput {
6
	ItemStack getItem(int index);
7
8
	int size();
9
10
	default boolean isEmpty() {
11
		for (int i = 0; i < this.size(); i++) {
12
			if (!this.getItem(i).isEmpty()) {
13
				return false;
14
			}
15
		}
16
17
		return true;
18
	}
19
}
20

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