15 lines
386 B
Java
15 lines
386 B
Java
package net.minecraft.world.inventory;
|
|
|
|
import net.minecraft.world.Container;
|
|
import net.minecraft.world.item.ItemStack;
|
|
|
|
public class ShulkerBoxSlot extends Slot {
|
|
public ShulkerBoxSlot(Container container, int slot, int x, int y) {
|
|
super(container, slot, x, y);
|
|
}
|
|
|
|
@Override
|
|
public boolean mayPlace(ItemStack stack) {
|
|
return stack.getItem().canFitInsideContainerItems();
|
|
}
|
|
}
|