Guest User

Untitled

a guest
Aug 13th, 2013
39
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package teamoverhaul.netheroverhaul.gui;
  2.  
  3. import net.minecraft.client.gui.GuiButton;
  4. import net.minecraft.entity.player.EntityPlayer;
  5. import net.minecraft.tileentity.TileEntity;
  6. import net.minecraft.world.World;
  7. import cpw.mods.fml.common.network.IGuiHandler;
  8.  
  9. public class GuiHandler implements IGuiHandler {
  10.  
  11. @Override
  12. public Object getServerGuiElement(int id, EntityPlayer player, World world, int x, int y, int z) {
  13. TileEntity tileEntity = world.getBlockTileEntity(x, y, z);
  14.  
  15. if(player != null)
  16. {
  17. switch(id)
  18. {
  19. case 0:
  20. return new ContainerNetherFurnace(player.inventory, (TileEntityNetherFurnace) tileEntity);
  21.  
  22. }
  23.  
  24. }
  25.  
  26. return null;
  27.  
  28. }
  29.  
  30.  
  31. @Override
  32. public Object getClientGuiElement(int id, EntityPlayer player, World world, int x, int y, int z) {
  33. TileEntity tileEntity = world.getBlockTileEntity(x, y, z);
  34.  
  35. if(player != null)
  36. {
  37. switch(id)
  38. {
  39. case 0:
  40. return new GuiNetherFurnace(player.inventory, (TileEntityNetherFurnace) tileEntity);
  41. }
  42. }
  43. return null;
  44.  
  45. }
  46. }
RAW Paste Data