15 lines
452 B
Java
15 lines
452 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 p_40202_, int p_40203_, int p_40204_, int p_40205_) {
|
||
|
super(p_40202_, p_40203_, p_40204_, p_40205_);
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public boolean mayPlace(ItemStack p_40207_) {
|
||
|
return p_40207_.getItem().canFitInsideContainerItems();
|
||
|
}
|
||
|
}
|