mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-20 20:22:33 +00:00
Assembly Halo, part one. Lots of stuff done already. Now to get the actual crafting to work.
This commit is contained in:
1 parent
3695db4f6b
commit
1beceb77cb
15 files changed
+464
-1
No files matched your search
@@ -14,6 +14,8 @@ package vazkii.botania.common.network;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.world.World;
|
||||
import vazkii.botania.api.lexicon.ILexicon;
|
||||
import vazkii.botania.client.gui.crafting.ContainerCraftingHalo;
|
||||
import vazkii.botania.client.gui.crafting.GuiCraftingHalo;
|
||||
import vazkii.botania.client.gui.lexicon.GuiLexicon;
|
||||
import vazkii.botania.common.lib.LibGuiIDs;
|
||||
import cpw.mods.fml.common.network.IGuiHandler;
|
||||
@@ -22,6 +24,12 @@ public class GuiHandler implements IGuiHandler {
|
||||
|
||||
@Override
|
||||
public Object getServerGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) {
|
||||
switch(ID) {
|
||||
case LibGuiIDs.CRAFTING_HALO : {
|
||||
return new ContainerCraftingHalo(player.inventory, world);
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -35,6 +43,9 @@ public class GuiHandler implements IGuiHandler {
|
||||
return null;
|
||||
return lex;
|
||||
}
|
||||
case LibGuiIDs.CRAFTING_HALO : {
|
||||
return new GuiCraftingHalo(player.inventory, world);
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
|
||||
Reference in new issue
Block a user