2022-10-28 16:20:12 +02:00
|
|
|
package mffs.container;
|
|
|
|
|
|
|
|
import mffs.base.ContainerBase;
|
|
|
|
import mffs.slot.SlotBase;
|
|
|
|
import mffs.slot.SlotCard;
|
|
|
|
import mffs.tileentity.TileEntityFortronCapacitor;
|
|
|
|
import net.minecraft.entity.player.EntityPlayer;
|
|
|
|
import net.minecraft.inventory.IInventory;
|
|
|
|
import net.minecraft.inventory.Slot;
|
|
|
|
|
|
|
|
public class ContainerFortronCapacitor extends ContainerBase {
|
|
|
|
private TileEntityFortronCapacitor tileEntity;
|
|
|
|
|
|
|
|
public ContainerFortronCapacitor(
|
2023-01-08 16:58:21 +01:00
|
|
|
final EntityPlayer player, final TileEntityFortronCapacitor tileEntity
|
|
|
|
) {
|
2022-10-28 16:20:12 +02:00
|
|
|
super((IInventory) tileEntity);
|
|
|
|
this.tileEntity = tileEntity;
|
|
|
|
this.addSlotToContainer((Slot) new SlotCard(this.tileEntity, 0, 9, 74));
|
|
|
|
this.addSlotToContainer((Slot) new SlotCard(this.tileEntity, 1, 27, 74));
|
|
|
|
this.addSlotToContainer((Slot) new SlotBase(this.tileEntity, 2, 154, 47));
|
|
|
|
this.addSlotToContainer((Slot) new SlotBase(this.tileEntity, 3, 154, 67));
|
|
|
|
this.addSlotToContainer((Slot) new SlotBase(this.tileEntity, 4, 154, 87));
|
|
|
|
this.addPlayerInventory(player);
|
|
|
|
}
|
|
|
|
}
|