SHARE
TWEET

ClientProxy_Jamiga

a guest Apr 12th, 2014 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package aJamigaPack1;
  2.  
  3. import java.util.Map;
  4.  
  5. import cpw.mods.fml.common.network.IGuiHandler;
  6. import cpw.mods.fml.common.network.NetworkRegistry;
  7. import cpw.mods.fml.relauncher.Side;
  8. import cpw.mods.fml.relauncher.SideOnly;
  9. import net.minecraft.client.model.ModelBiped;
  10. import net.minecraft.client.renderer.entity.RenderLiving;
  11. import net.minecraft.entity.Entity;
  12. import net.minecraft.entity.player.EntityPlayer;
  13. import net.minecraft.util.ResourceLocation;
  14. import net.minecraft.world.World;
  15.  
  16. public class CommonProxy implements IGuiHandler {
  17.        
  18.        
  19.         @SideOnly(Side.CLIENT)
  20.         @Override
  21.         public Object getServerGuiElement(int guiId, EntityPlayer player, World world, int x, int y, int z)
  22.         {
  23.         if (guiId == mod_Armor_main.GUI_CUSTOM_INV)
  24.         return new ContainerCustomPlayer(player, player.inventory, ExtendedPlayer.get(player).inventory);
  25.         else
  26.         return null;
  27.         }
  28.  
  29.         @Override
  30.         public Object getClientGuiElement(int guiId, EntityPlayer player, World world, int x, int y, int z)
  31.         {
  32.         if (guiId == mod_Armor_main.GUI_CUSTOM_INV)
  33.         return new GuiCustomPlayerInventory(player, player.inventory, ExtendedPlayer.get(player).inventory);
  34.         else
  35.         return null;
  36.         }
  37.  
  38.  
  39.         public void registerRenderers() {
  40.                 // TODO Auto-generated method stub
  41.                
  42.         }
  43.        
  44.         public void registerGuiHandler()
  45.         {
  46.           NetworkRegistry.instance().registerGuiHandler(this, new CommonProxy());
  47.  
  48.         }
  49.  
  50.  
  51. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top