-
Notifications
You must be signed in to change notification settings - Fork 48
/
ChromaGuiHandler.java
415 lines (403 loc) · 20.2 KB
/
ChromaGuiHandler.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
/*******************************************************************************
* @author Reika Kalseki
*
* Copyright 2017
*
* All rights reserved.
* Distribution of the software in any form is only allowed with
* explicit, prior permission from the owner.
******************************************************************************/
package Reika.ChromatiCraft;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.World;
import Reika.ChromatiCraft.Auxiliary.Interfaces.CastingAutomationBlock;
import Reika.ChromatiCraft.Auxiliary.Interfaces.ItemOnRightClick;
import Reika.ChromatiCraft.Base.ChromaBookGui;
import Reika.ChromatiCraft.Base.TileEntity.TileEntityChromaticBase;
import Reika.ChromatiCraft.Block.BlockEnderTNT.TileEntityEnderTNT;
import Reika.ChromatiCraft.Block.BlockHeatLamp.TileEntityHeatLamp;
import Reika.ChromatiCraft.Block.BlockRouterNode.RouterFilter;
import Reika.ChromatiCraft.Block.Decoration.BlockRangedLamp.TileEntityRangedLamp;
import Reika.ChromatiCraft.Block.Dimension.Structure.BlockStructureDataStorage.TileEntityStructurePassword;
import Reika.ChromatiCraft.Block.Relay.BlockRelayFilter.TileEntityRelayFilter;
import Reika.ChromatiCraft.Container.ContainerAuraPouch;
import Reika.ChromatiCraft.Container.ContainerAutoEnchanter;
import Reika.ChromatiCraft.Container.ContainerBookEmpties;
import Reika.ChromatiCraft.Container.ContainerBookPages;
import Reika.ChromatiCraft.Container.ContainerBulkMover;
import Reika.ChromatiCraft.Container.ContainerCastingAuto;
import Reika.ChromatiCraft.Container.ContainerCastingTable;
import Reika.ChromatiCraft.Container.ContainerCrystalBrewer;
import Reika.ChromatiCraft.Container.ContainerCrystalCharger;
import Reika.ChromatiCraft.Container.ContainerCrystalFurnace;
import Reika.ChromatiCraft.Container.ContainerCrystalTank;
import Reika.ChromatiCraft.Container.ContainerEnchantDecomposer;
import Reika.ChromatiCraft.Container.ContainerFluidRelay;
import Reika.ChromatiCraft.Container.ContainerFragmentSelect;
import Reika.ChromatiCraft.Container.ContainerInventoryTicker;
import Reika.ChromatiCraft.Container.ContainerItemBurner;
import Reika.ChromatiCraft.Container.ContainerItemCollector;
import Reika.ChromatiCraft.Container.ContainerItemFabricator;
import Reika.ChromatiCraft.Container.ContainerItemInserter;
import Reika.ChromatiCraft.Container.ContainerItemWithFilter;
import Reika.ChromatiCraft.Container.ContainerMiner;
import Reika.ChromatiCraft.Container.ContainerNetworkItemTransporter;
import Reika.ChromatiCraft.Container.ContainerRouterFilter;
import Reika.ChromatiCraft.Container.ContainerSpawnerProgrammer;
import Reika.ChromatiCraft.Container.ContainerStructurePassword;
import Reika.ChromatiCraft.Container.ContainerTelePump;
import Reika.ChromatiCraft.GUI.GuiAbilitySelect;
import Reika.ChromatiCraft.GUI.GuiAuraPouch;
import Reika.ChromatiCraft.GUI.GuiBulkMover;
import Reika.ChromatiCraft.GUI.GuiEnderBucket;
import Reika.ChromatiCraft.GUI.GuiFlightWand;
import Reika.ChromatiCraft.GUI.GuiFragmentSelect;
import Reika.ChromatiCraft.GUI.GuiItemBurner;
import Reika.ChromatiCraft.GUI.GuiItemWithFilter;
import Reika.ChromatiCraft.GUI.GuiLoreKeyAssembly;
import Reika.ChromatiCraft.GUI.GuiOneSlot;
import Reika.ChromatiCraft.GUI.GuiTeleportAbility;
import Reika.ChromatiCraft.GUI.GuiTransitionWand;
import Reika.ChromatiCraft.GUI.Book.GuiAbilityDesc;
import Reika.ChromatiCraft.GUI.Book.GuiAdjacencyDescription;
import Reika.ChromatiCraft.GUI.Book.GuiBasicInfo;
import Reika.ChromatiCraft.GUI.Book.GuiBookEmpties;
import Reika.ChromatiCraft.GUI.Book.GuiBookPages;
import Reika.ChromatiCraft.GUI.Book.GuiCastingRecipe;
import Reika.ChromatiCraft.GUI.Book.GuiCraftableDesc;
import Reika.ChromatiCraft.GUI.Book.GuiCraftingRecipe;
import Reika.ChromatiCraft.GUI.Book.GuiFragmentRecovery;
import Reika.ChromatiCraft.GUI.Book.GuiMachineDescription;
import Reika.ChromatiCraft.GUI.Book.GuiNavigation;
import Reika.ChromatiCraft.GUI.Book.GuiNotes;
import Reika.ChromatiCraft.GUI.Book.GuiPackChanges;
import Reika.ChromatiCraft.GUI.Book.GuiPoolRecipe;
import Reika.ChromatiCraft.GUI.Book.GuiProgressByLevel;
import Reika.ChromatiCraft.GUI.Book.GuiProgressTree;
import Reika.ChromatiCraft.GUI.Book.GuiRitual;
import Reika.ChromatiCraft.GUI.Book.GuiStructure;
import Reika.ChromatiCraft.GUI.Book.GuiToolDescription;
import Reika.ChromatiCraft.GUI.Tile.GuiBiomeChanger;
import Reika.ChromatiCraft.GUI.Tile.GuiCastingAuto;
import Reika.ChromatiCraft.GUI.Tile.GuiCrystalMusic;
import Reika.ChromatiCraft.GUI.Tile.GuiCrystalTank;
import Reika.ChromatiCraft.GUI.Tile.GuiEnderTNT;
import Reika.ChromatiCraft.GUI.Tile.GuiFluidRelay;
import Reika.ChromatiCraft.GUI.Tile.GuiHeatLamp;
import Reika.ChromatiCraft.GUI.Tile.GuiLampController;
import Reika.ChromatiCraft.GUI.Tile.GuiLumenAlveary;
import Reika.ChromatiCraft.GUI.Tile.GuiParticleSpawner;
import Reika.ChromatiCraft.GUI.Tile.GuiRangedLamp;
import Reika.ChromatiCraft.GUI.Tile.GuiRelayFilter;
import Reika.ChromatiCraft.GUI.Tile.GuiRitualTable;
import Reika.ChromatiCraft.GUI.Tile.GuiRouterFilter;
import Reika.ChromatiCraft.GUI.Tile.GuiTeleportGate;
import Reika.ChromatiCraft.GUI.Tile.Inventory.GuiAutoEnchanter;
import Reika.ChromatiCraft.GUI.Tile.Inventory.GuiCastingTable;
import Reika.ChromatiCraft.GUI.Tile.Inventory.GuiCrystalBrewer;
import Reika.ChromatiCraft.GUI.Tile.Inventory.GuiCrystalCharger;
import Reika.ChromatiCraft.GUI.Tile.Inventory.GuiCrystalFurnace;
import Reika.ChromatiCraft.GUI.Tile.Inventory.GuiEnchantDecomposer;
import Reika.ChromatiCraft.GUI.Tile.Inventory.GuiInventoryTicker;
import Reika.ChromatiCraft.GUI.Tile.Inventory.GuiItemCollector;
import Reika.ChromatiCraft.GUI.Tile.Inventory.GuiItemFabricator;
import Reika.ChromatiCraft.GUI.Tile.Inventory.GuiItemInserter;
import Reika.ChromatiCraft.GUI.Tile.Inventory.GuiMiner;
import Reika.ChromatiCraft.GUI.Tile.Inventory.GuiNetworkItemTransporter;
import Reika.ChromatiCraft.GUI.Tile.Inventory.GuiSpawnerProgrammer;
import Reika.ChromatiCraft.GUI.Tile.Inventory.GuiStructurePassword;
import Reika.ChromatiCraft.GUI.Tile.Inventory.GuiTelePump;
import Reika.ChromatiCraft.ModInterface.AE.ContainerMEDistributor;
import Reika.ChromatiCraft.ModInterface.AE.ContainerPatternCache;
import Reika.ChromatiCraft.ModInterface.AE.ContainerRemoteTerminal;
import Reika.ChromatiCraft.ModInterface.AE.GuiMEDistributor;
import Reika.ChromatiCraft.ModInterface.AE.GuiPatternCache;
import Reika.ChromatiCraft.ModInterface.AE.GuiRemoteTerminal;
import Reika.ChromatiCraft.ModInterface.AE.TileEntityMEDistributor;
import Reika.ChromatiCraft.ModInterface.AE.TileEntityPatternCache;
import Reika.ChromatiCraft.ModInterface.Bees.TileEntityLumenAlveary;
import Reika.ChromatiCraft.ModInterface.ThaumCraft.ContainerFluxMaker;
import Reika.ChromatiCraft.ModInterface.ThaumCraft.GuiAbilityFocus;
import Reika.ChromatiCraft.ModInterface.ThaumCraft.GuiAspectFormer;
import Reika.ChromatiCraft.ModInterface.ThaumCraft.GuiFluxMaker;
import Reika.ChromatiCraft.ModInterface.ThaumCraft.TileEntityAspectFormer;
import Reika.ChromatiCraft.ModInterface.ThaumCraft.TileEntityFluxMaker;
import Reika.ChromatiCraft.Registry.ChromaGuis;
import Reika.ChromatiCraft.Registry.ChromaResearch;
import Reika.ChromatiCraft.TileEntity.TileEntityBiomePainter;
import Reika.ChromatiCraft.TileEntity.AOE.TileEntityItemCollector;
import Reika.ChromatiCraft.TileEntity.AOE.TileEntityItemInserter;
import Reika.ChromatiCraft.TileEntity.AOE.TileEntityLampController;
import Reika.ChromatiCraft.TileEntity.Acquisition.TileEntityCollector;
import Reika.ChromatiCraft.TileEntity.Acquisition.TileEntityItemFabricator;
import Reika.ChromatiCraft.TileEntity.Acquisition.TileEntityMiner;
import Reika.ChromatiCraft.TileEntity.Acquisition.TileEntityTeleportationPump;
import Reika.ChromatiCraft.TileEntity.Auxiliary.TileEntityCrystalCharger;
import Reika.ChromatiCraft.TileEntity.Decoration.TileEntityCrystalMusic;
import Reika.ChromatiCraft.TileEntity.Decoration.TileEntityParticleSpawner;
import Reika.ChromatiCraft.TileEntity.Processing.TileEntityAutoEnchanter;
import Reika.ChromatiCraft.TileEntity.Processing.TileEntityCrystalFurnace;
import Reika.ChromatiCraft.TileEntity.Processing.TileEntityEnchantDecomposer;
import Reika.ChromatiCraft.TileEntity.Processing.TileEntityInventoryTicker;
import Reika.ChromatiCraft.TileEntity.Processing.TileEntitySpawnerReprogrammer;
import Reika.ChromatiCraft.TileEntity.Recipe.TileEntityCastingTable;
import Reika.ChromatiCraft.TileEntity.Recipe.TileEntityCrystalBrewer;
import Reika.ChromatiCraft.TileEntity.Recipe.TileEntityRitualTable;
import Reika.ChromatiCraft.TileEntity.Storage.TileEntityCrystalTank;
import Reika.ChromatiCraft.TileEntity.Transport.TileEntityFluidRelay;
import Reika.ChromatiCraft.TileEntity.Transport.TileEntityNetworkItemTransporter;
import Reika.ChromatiCraft.TileEntity.Transport.TileEntityRift;
import Reika.ChromatiCraft.TileEntity.Transport.TileEntityTeleportGate;
import Reika.DragonAPI.Base.CoreContainer;
import Reika.DragonAPI.Base.OneSlotContainer;
import Reika.DragonAPI.Base.OneSlotMachine;
import Reika.DragonAPI.Interfaces.TileEntity.GuiController;
import cpw.mods.fml.common.network.IGuiHandler;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
public class ChromaGuiHandler implements IGuiHandler {
public static final ChromaGuiHandler instance = new ChromaGuiHandler();
@Override
public Object getServerGuiElement(int id, EntityPlayer player, World world, int x, int y, int z) {
ChromaGuis gui = ChromaGuis.guiList[id];
switch(gui) {
case ITEMWITHFILTER:
return new ContainerItemWithFilter(player, world);
case BOOKPAGES:
return new ContainerBookPages(player, x);
case BOOKEMPTIES:
return new ContainerBookEmpties(player);
case TILE:
TileEntity te = world.getTileEntity(x, y, z);
if (te instanceof TileEntityAutoEnchanter)
return new ContainerAutoEnchanter(player, (TileEntityAutoEnchanter)te);
if (te instanceof TileEntityCollector)
return null;//return new ContainerCollector(player, (TileEntityCollector)te);
if (te instanceof TileEntitySpawnerReprogrammer)
return new ContainerSpawnerProgrammer(player, (TileEntitySpawnerReprogrammer)te);
if (te instanceof TileEntityCrystalBrewer)
return new ContainerCrystalBrewer(player, (TileEntityCrystalBrewer)te);
if (te instanceof TileEntityCastingTable)
return new ContainerCastingTable(player, te);
if (te instanceof TileEntityCrystalCharger)
return new ContainerCrystalCharger(player, (TileEntityCrystalCharger)te);
if (te instanceof TileEntityCrystalFurnace)
return new ContainerCrystalFurnace(player, (TileEntityCrystalFurnace)te);
if (te instanceof TileEntityItemCollector)
return new ContainerItemCollector(player, (TileEntityItemCollector)te);
if (te instanceof TileEntityItemFabricator)
return new ContainerItemFabricator(player, (TileEntityItemFabricator)te);
if (te instanceof TileEntityTeleportationPump)
return new ContainerTelePump(player, (TileEntityTeleportationPump)te);
if (te instanceof TileEntityMiner)
return new ContainerMiner(player, (TileEntityMiner)te);
if (te instanceof TileEntityCrystalTank)
return new ContainerCrystalTank(player, (TileEntityCrystalTank)te);
if (te instanceof TileEntityInventoryTicker)
return new ContainerInventoryTicker(player, (TileEntityInventoryTicker)te);
if (te instanceof CastingAutomationBlock)
return new ContainerCastingAuto((CastingAutomationBlock)te, player);
if (te instanceof TileEntityMEDistributor)
return new ContainerMEDistributor(player, (TileEntityMEDistributor)te);
if (te instanceof TileEntityPatternCache)
return new ContainerPatternCache(player, (TileEntityPatternCache)te);
if (te instanceof TileEntityItemInserter)
return new ContainerItemInserter(player, (TileEntityItemInserter)te);
if (te instanceof TileEntityEnchantDecomposer)
return new ContainerEnchantDecomposer(player, (TileEntityEnchantDecomposer)te);
if (te instanceof TileEntityFluidRelay)
return new ContainerFluidRelay(player, (TileEntityFluidRelay)te);
if (te instanceof RouterFilter)
return new ContainerRouterFilter(player, (RouterFilter)te);
if (te instanceof TileEntityFluxMaker)
return new ContainerFluxMaker(player, (TileEntityFluxMaker)te);
if (te instanceof TileEntityNetworkItemTransporter)
return new ContainerNetworkItemTransporter(player, (TileEntityNetworkItemTransporter)te);
if (te instanceof ItemOnRightClick)
return null;
if (te instanceof TileEntityRift)
return null;
if (te instanceof OneSlotMachine)
return new OneSlotContainer(player, te);
if (te instanceof GuiController)
return new CoreContainer(player, te);
//if (te instanceof IInventory && !(te instanceof InertIInv))
// return new ContainerBasicStorage(player, te);
break;
case AURAPOUCH:
return new ContainerAuraPouch(player);
case REMOTETERMINAL:
return new ContainerRemoteTerminal(player);
case BULKMOVER:
return new ContainerBulkMover(player);
case BURNERINV:
return new ContainerItemBurner(player);
case STRUCTUREPASS:
return new ContainerStructurePassword(player, (TileEntityStructurePassword)world.getTileEntity(x, y, z));
case FRAGSELECT:
return new ContainerFragmentSelect(player);
default:
return null;
}
return null;
}
@Override
@SideOnly(Side.CLIENT)
public Object getClientGuiElement(int id, EntityPlayer player, World world, int x, int y, int z) {
ChromaGuis gui = ChromaGuis.guiList[id];
if (ChromaBookGui.lastGui != null && gui.isLexiconGUI() && z == 0) {
Object ret = ChromaBookGui.lastGui;
ChromaBookGui.lastGui = null;
return ret;
}
switch(gui) {
case ITEMWITHFILTER:
return new GuiItemWithFilter(player, world);
case LOREKEY:
return new GuiLoreKeyAssembly(player);
//case LORE:
// return new GuiLore(player);
case TILE:
TileEntity te = world.getTileEntity(x, y, z);
if (te instanceof TileEntityAutoEnchanter)
return new GuiAutoEnchanter(player, (TileEntityAutoEnchanter)te);
if (te instanceof TileEntityCollector)
return null;//return new GuiCollector(player, (TileEntityCollector)te);
if (te instanceof TileEntitySpawnerReprogrammer)
return new GuiSpawnerProgrammer(player, (TileEntitySpawnerReprogrammer)te);
if (te instanceof TileEntityCrystalBrewer)
return new GuiCrystalBrewer(player, (TileEntityCrystalBrewer)te);
if (te instanceof TileEntityCastingTable)
return new GuiCastingTable(player, (TileEntityCastingTable)te);
if (te instanceof TileEntityCrystalCharger)
return new GuiCrystalCharger(player, (TileEntityCrystalCharger)te);
if (te instanceof TileEntityRitualTable)
return new GuiRitualTable(player, (TileEntityRitualTable)te);
if (te instanceof TileEntityCrystalFurnace)
return new GuiCrystalFurnace(player, (TileEntityCrystalFurnace)te);
if (te instanceof TileEntityItemCollector)
return new GuiItemCollector(player, (TileEntityItemCollector)te);
if (te instanceof TileEntityItemFabricator)
return new GuiItemFabricator(player, (TileEntityItemFabricator)te);
if (te instanceof TileEntityTeleportationPump)
return new GuiTelePump(player, (TileEntityTeleportationPump)te);
if (te instanceof TileEntityAspectFormer)
return new GuiAspectFormer(player, (TileEntityAspectFormer)te);
if (te instanceof TileEntityMiner)
return new GuiMiner(player, (TileEntityMiner)te);
if (te instanceof TileEntityLampController)
return new GuiLampController(player, (TileEntityLampController)te);
if (te instanceof TileEntityRangedLamp)
return new GuiRangedLamp(player, (TileEntityRangedLamp)te);
if (te instanceof TileEntityCrystalTank)
return new GuiCrystalTank(player, (TileEntityCrystalTank)te);
if (te instanceof TileEntityEnderTNT)
return new GuiEnderTNT(player, (TileEntityEnderTNT)te);
if (te instanceof TileEntityInventoryTicker)
return new GuiInventoryTicker(player, (TileEntityInventoryTicker)te);
if (te instanceof TileEntityBiomePainter)
return new GuiBiomeChanger(player, (TileEntityBiomePainter)te);
if (te instanceof TileEntityHeatLamp)
return new GuiHeatLamp((TileEntityHeatLamp)te, player);
if (te instanceof CastingAutomationBlock)
return new GuiCastingAuto((CastingAutomationBlock)te, player);
if (te instanceof TileEntityMEDistributor)
return new GuiMEDistributor(player, (TileEntityMEDistributor)te);
if (te instanceof TileEntityCrystalMusic)
return new GuiCrystalMusic(player, (TileEntityCrystalMusic)te);
if (te instanceof TileEntityPatternCache)
return new GuiPatternCache(player, (TileEntityPatternCache)te);
if (te instanceof TileEntityItemInserter)
return new GuiItemInserter(player, (TileEntityItemInserter)te);
if (te instanceof TileEntityEnchantDecomposer)
return new GuiEnchantDecomposer(player, (TileEntityEnchantDecomposer)te);
if (te instanceof TileEntityParticleSpawner)
return new GuiParticleSpawner(player, (TileEntityParticleSpawner)te);
if (te instanceof TileEntityTeleportGate)
return new GuiTeleportGate(player, (TileEntityTeleportGate)te);
if (te instanceof TileEntityFluidRelay)
return new GuiFluidRelay(player, (TileEntityFluidRelay)te);
if (te instanceof TileEntityRelayFilter)
return new GuiRelayFilter(player, (TileEntityRelayFilter)te);
if (te instanceof RouterFilter)
return new GuiRouterFilter(player, (RouterFilter)te);
if (te instanceof TileEntityFluxMaker)
return new GuiFluxMaker(player, (TileEntityFluxMaker)te);
if (te instanceof TileEntityLumenAlveary)
return new GuiLumenAlveary(player, (TileEntityLumenAlveary)te);
if (te instanceof TileEntityNetworkItemTransporter)
return new GuiNetworkItemTransporter(player, (TileEntityNetworkItemTransporter)te);
if (te instanceof OneSlotMachine) {
return new GuiOneSlot(player, (TileEntityChromaticBase)te);
}/*
if (te instanceof IInventory && !(te instanceof InertIInv))
return new GuiBasicStorage(player, (RotaryCraftTileEntity)te);
*/
break;
case ABILITY:
return new GuiAbilitySelect(player);
case ABILITYFOCUS:
return new GuiAbilityFocus(player);
case BOOKNAV:
return new GuiNavigation(player);
case BOOKPAGES:
return new GuiBookPages(player, x);
case BOOKEMPTIES:
return new GuiBookEmpties(player);
case MACHINEDESC: {
ChromaResearch r = ChromaResearch.researchList[x];
return r == ChromaResearch.ACCEL ? new GuiAdjacencyDescription(player) : new GuiMachineDescription(player, r);
}
case TOOLDESC:
return new GuiToolDescription(player, ChromaResearch.researchList[x]);
case BASICDESC:
return new GuiCraftableDesc(player, ChromaResearch.researchList[x]);
case CRAFTING:
return new GuiCraftingRecipe(player, ChromaResearch.researchList[x].getVanillaRecipes(), y);
case RECIPE:
return new GuiCastingRecipe(player, ChromaResearch.researchList[x].getCraftingRecipes(), y, z > 0);
case ALLOYING:
return new GuiPoolRecipe(player, y, z > 0);
case RITUAL:
return new GuiRitual(player, ChromaResearch.researchList[x].getAbility());
case ABILITYDESC:
return new GuiAbilityDesc(player, ChromaResearch.researchList[x]);
case INFO: {
ChromaResearch r = ChromaResearch.researchList[x];
return r == ChromaResearch.PACKCHANGES ? new GuiPackChanges(player) : new GuiBasicInfo(player, r);
}
case STRUCTURE:
return new GuiStructure(player, ChromaResearch.researchList[x]);
case PROGRESS:
return new GuiProgressTree(player);
case PROGRESSBYTIER:
return new GuiProgressByLevel(player);
case REFRAGMENT:
return new GuiFragmentRecovery(player);
case NOTES:
return new GuiNotes(player);
case AURAPOUCH:
return new GuiAuraPouch(player);
case TRANSITION:
return new GuiTransitionWand(player);
case TELEPORT:
return new GuiTeleportAbility(player);
case REMOTETERMINAL:
return new GuiRemoteTerminal(player);
case BULKMOVER:
return new GuiBulkMover(player);
case HOVER:
return new GuiFlightWand(player);
case BURNERINV:
return new GuiItemBurner(player);
case STRUCTUREPASS:
return new GuiStructurePassword(player, (TileEntityStructurePassword)world.getTileEntity(x, y, z));
case ENDERBUCKET:
return new GuiEnderBucket(player);
case FRAGSELECT:
return new GuiFragmentSelect(player);
}
return null;
}
}