aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/core/container
diff options
context:
space:
mode:
authorAlkalus <draknyte1@hotmail.com>2017-11-12 14:49:30 +1000
committerAlkalus <draknyte1@hotmail.com>2017-11-12 14:49:30 +1000
commitba953bf8c399cbb0fceccb44495bb88c4cc64213 (patch)
tree88170ea13fca1e1d4d078798c7a1c5293d53aeb5 /src/Java/gtPlusPlus/core/container
parent0e508a2821b8f51910c448a2385f1737a874d894 (diff)
downloadGT5-Unofficial-ba953bf8c399cbb0fceccb44495bb88c4cc64213.tar.gz
GT5-Unofficial-ba953bf8c399cbb0fceccb44495bb88c4cc64213.tar.bz2
GT5-Unofficial-ba953bf8c399cbb0fceccb44495bb88c4cc64213.zip
+ New modular table gui texture.
+ Added 9 storage slots for components to the modularity table. + Added a processing time to Modular upgrades.
Diffstat (limited to 'src/Java/gtPlusPlus/core/container')
-rw-r--r--src/Java/gtPlusPlus/core/container/Container_ModularityTable.java22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/Java/gtPlusPlus/core/container/Container_ModularityTable.java b/src/Java/gtPlusPlus/core/container/Container_ModularityTable.java
index edc84a8c5f..244212ccb2 100644
--- a/src/Java/gtPlusPlus/core/container/Container_ModularityTable.java
+++ b/src/Java/gtPlusPlus/core/container/Container_ModularityTable.java
@@ -24,6 +24,7 @@ public class Container_ModularityTable extends Container {
protected TileEntityModularityTable tile_entity;
public final InventoryModularMain inventoryGrid;
public final InventoryModularOutput inventoryOutputs;
+ public int mRecipeTime;
private final World worldObj;
private final int posX;
@@ -39,6 +40,7 @@ public class Container_ModularityTable extends Container {
this.inventoryGrid = tile.inventoryGrid;
this.inventoryOutputs = tile.inventoryOutputs;
this.tile_entity.setContainer(this);
+ this.mRecipeTime = this.tile_entity.getRecipeTime();
int var6;
int var7;
@@ -56,6 +58,19 @@ public class Container_ModularityTable extends Container {
this.addSlotToContainer(new SlotNoInput(this.inventoryOutputs, 2, 26+(18*6), 44));
int o = 0;
+
+ //Storage Side
+ for (var6 = 0; var6 < 3; ++var6)
+ {
+ for (var7 = 0; var7 < 3; ++var7)
+ {
+ //Utils.LOG_WARNING("Adding slots at var:"+(var7 + var6 * 4)+" x:"+(8 + var7 * 18)+" y:"+(7 + var6 * 18));
+ this.addSlotToContainer(new SlotModularBaubleUpgrades(this.inventoryGrid, nextFreeSlot, 8+18 + (var7 * 18), 17 + (var6 * 18)));
+ this.slotGrid[o] = nextFreeSlot;
+ nextFreeSlot++;
+ o++;
+ }
+ }
//Player Inventory
for (var6 = 0; var6 < 3; ++var6)
@@ -98,6 +113,13 @@ public class Container_ModularityTable extends Container {
}*/
}
}
+
+ public TileEntityModularityTable getTileentityViaContainer(){
+ if (this.tile_entity != null){
+ return this.tile_entity;
+ }
+ return null;
+ }
@Override
public ItemStack slotClick(final int aSlotIndex, final int aMouseclick, final int aShifthold, final EntityPlayer aPlayer){