2025-11-24 22:52:51 +03:00

32 lines
773 B
Java

/*
* Decompiled with CFR 0.152.
*/
package net.minecraft.world.inventory;
import net.minecraft.world.Container;
import net.minecraft.world.inventory.CrafterMenu;
import net.minecraft.world.inventory.Slot;
import net.minecraft.world.item.ItemStack;
public class CrafterSlot
extends Slot {
private final CrafterMenu menu;
public CrafterSlot(Container container, int slot, int x, int y, CrafterMenu menu) {
super(container, slot, x, y);
this.menu = menu;
}
@Override
public boolean mayPlace(ItemStack itemStack) {
return !this.menu.isSlotDisabled(this.index) && super.mayPlace(itemStack);
}
@Override
public void setChanged() {
super.setChanged();
this.menu.slotsChanged(this.container);
}
}