ShulkerBoxSlot .java

net.minecraft.world.inventory.ShulkerBoxSlot (class, 16 lines): extends Slot. members: mayPlace. imports: Container, ItemStack.

net.minecraft.world.inventoryclass16 linescommonextends Slot424 B

API Surface (1)

boolean mayPlace(final ItemStack itemStack)

Code Graph: Dependencies (3)

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

Full Source

ShulkerBoxSlot.java16 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.world.inventory;
2
3
import net.minecraft.world.Container;
4
import net.minecraft.world.item.ItemStack;
5
6
public class ShulkerBoxSlot extends Slot {
7
	public ShulkerBoxSlot(final Container container, final int slot, final int x, final int y) {
8
		super(container, slot, x, y);
9
	}
10
11
	@Override
12
	public boolean mayPlace(final ItemStack itemStack) {
13
		return itemStack.getItem().canFitInsideContainerItems();
14
	}
15
}
16

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