ContainerComponent .java

net.minecraft.world.item.component.ContainerComponent (interface): members: copyWithContents, asMutable, itemCopies, Mutable, size. imports: ItemStack.

net.minecraft.world.item.componentinterface20 linescommonextends ContainerComponent<T>>462 B

API Surface (0)

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

Code Graph: Dependencies (3)

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

Full Source

ContainerComponent.java20 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.world.item.component;
2
3
import java.util.stream.Stream;
4
import net.minecraft.world.item.ItemStack;
5
import net.minecraft.world.item.slot.SlotCollection;
6
7
public interface ContainerComponent<T extends ContainerComponent<T>> {
8
	Stream<ItemStack> itemCopies();
9
10
	int size();
11
12
	T copyWithContents(Stream<ItemStack> newContents);
13
14
	ContainerComponent.Mutable<T> asMutable();
15
16
	interface Mutable<T> extends SlotCollection {
17
		T toImmutable();
18
	}
19
}
20

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