Guest User

Untitled

a guest
Apr 19th, 2014
48
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package hoopawolf.MTM.gui;
  2.  
  3. import net.minecraft.entity.player.EntityPlayer;
  4. import net.minecraft.world.World;
  5. import cpw.mods.fml.common.network.IGuiHandler;
  6.  
  7. public class GUIHandler implements IGuiHandler {
  8.     public GUIHandler() {
  9.     }
  10.  
  11.     /**
  12.      * Gets the server element.
  13.      * This means, do something server side, when this ID gets called.
  14.      */
  15.     @Override
  16.     public Object getServerGuiElement(int ID, EntityPlayer player, World world,
  17.             int x, int y, int z) {
  18.  
  19.         return null;
  20.     }
  21.  
  22.     /**
  23.      * Gets the client element.
  24.      * This means, do something client side, when this ID gets called.
  25.      */
  26.     @Override
  27.     public Object getClientGuiElement(int ID, EntityPlayer player, World world,
  28.             int x, int y, int z) {
  29.         if (ID == 0)
  30.             return new MouseGUI();
  31.  
  32.         else if (ID == 1)
  33.             return new OxGUI();
  34.  
  35.         else if (ID == 2)
  36.             return new TigerGUI();
  37.        
  38.         else if (ID == 3)
  39.             return new RabbitGUI();
  40.        
  41.         else if (ID == 4)
  42.             return new DragonGUI();
  43.        
  44.         else if (ID == 5)
  45.             return new SnakeGUI();
  46.        
  47.         else if (ID == 6)
  48.             return new HorseGUI();
  49.        
  50.         else if (ID == 7)
  51.             return new SheepGUI();
  52.        
  53.         else if (ID == 8)
  54.             return new MonkeyGUI();
  55.        
  56.         else if (ID == 9)
  57.             return new RoosterGUI();
  58.  
  59.         return null;
  60.     }
  61. }
RAW Paste Data