mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-22 13:10:13 +00:00
38 lines
1.1 KiB
Java
38 lines
1.1 KiB
Java
package crazypants.enderio.machine.painter;
|
|
|
|
import net.minecraft.entity.player.InventoryPlayer;
|
|
import net.minecraft.inventory.Slot;
|
|
import net.minecraft.item.ItemStack;
|
|
import crazypants.enderio.machine.AbstractMachineEntity;
|
|
import crazypants.enderio.machine.gui.AbstractMachineContainer;
|
|
|
|
public class PainterContainer extends AbstractMachineContainer {
|
|
|
|
public PainterContainer(InventoryPlayer playerInv, AbstractMachineEntity te) {
|
|
super(playerInv, te);
|
|
}
|
|
|
|
@Override
|
|
protected void addMachineSlots(InventoryPlayer playerInv) {
|
|
addSlotToContainer(new Slot(tileEntity, 0, 67, 34) {
|
|
@Override
|
|
public boolean isItemValid(ItemStack itemStack) {
|
|
return tileEntity.isItemValidForSlot(0, itemStack);
|
|
}
|
|
});
|
|
addSlotToContainer(new Slot(tileEntity, 1, 38, 34) {
|
|
@Override
|
|
public boolean isItemValid(ItemStack itemStack) {
|
|
return tileEntity.isItemValidForSlot(1, itemStack);
|
|
}
|
|
});
|
|
addSlotToContainer(new Slot(tileEntity, 2, 121, 34) {
|
|
@Override
|
|
public boolean isItemValid(ItemStack par1ItemStack) {
|
|
return false;
|
|
}
|
|
});
|
|
}
|
|
|
|
}
|