Advertisement
Guest User

Untitled

a guest
Jan 6th, 2016
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.68 KB | None | 0 0
  1. public ContainerConstructor(IInventory playerInv, IInventory tileEntity) {
  2.         this.constructorInventory = playerInv;
  3.  
  4.         int i;
  5.         int j;
  6.         for(i = 0; i < 3; ++i) {
  7.             for(j = 0; j < 3; ++j) {
  8.                 this.addSlotToContainer(new Slot(playerInv, j + i * 3, 62 + j * 18, 17 + i * 18));
  9.             }
  10.         }
  11.  
  12.         for(i = 0; i < 3; ++i) {
  13.             for(j = 0; j < 9; ++j) {
  14.                 this.addSlotToContainer(new Slot(tileEntity, j + i * 9 + 9, 8 + j * 18, 84 + i * 18));
  15.             }
  16.         }
  17.  
  18.         for(i = 0; i < 9; ++i) {
  19.             this.addSlotToContainer(new Slot(tileEntity, i, 8 + i * 18, 142));
  20.         }
  21.  
  22.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement