Created
November 28, 2013 06:03
-
-
Save Jezza/7687893 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public ContainerQuartzFurnace(InventoryPlayer inventoryPlayer, TileEntityQuartzFurnace tileEntity) { | |
this.quartzFurnace = tileEntity; | |
this.addSlotToContainer(new Slot(tileEntity, 0, 56, 17)); | |
this.addSlotToContainer(new Slot(tileEntity, 1, 56, 53)); | |
this.addSlotToContainer(new SlotFurnace(inventoryPlayer.player, tileEntity, 2, 116, 35)); | |
int y; | |
// add inventory slots | |
for (y = 0; y < 3; ++y) { | |
for (int x = 0; x < 9; ++x) { | |
// for slot arg: add 9 to make room for the hotbar | |
this.addSlotToContainer(new Slot(par1InventoryPlayer, x + y * 9 + 9, 8 + x * 18, 93 + y * 18)); | |
} | |
} | |
// add hotbar slots | |
for (x = 0; x < 9; ++x) { | |
this.addSlotToContainer(new Slot(inventoryPlayer, x, 8 + 18 * x, 142)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment