Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class ContainerAssembly extends MachineContainer {
- public ContainerAssembly(InventoryPlayer player, MachineTile tileEntity) {
- super(player, tileEntity);
- int index = 0;
- for(int a = 0; a < 5; a++) {
- for(int b = 0; b < 5; b++) {
- this.addSlotToContainer(new Slot(player, index, 8 + b * 18, 8 + (a - 1) * 18));
- index ++;
- }
- }
- this.addSlotToContainer(new SlotItemHandler(tileEntity.getInventory(), 25, 134, 26));
- for (int y = 0; y < 3; y++) {
- for (int x = 0; x < 9; x++) {
- this.addSlotToContainer(new Slot(player, x + y * 9 + 9, 8 + x * 18, 84 + y * 18));
- }
- }
- for (int x = 0; x < 9; x++) {
- this.addSlotToContainer(new Slot(player, x, 8 + x * 18, 142));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement