Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package aJamigaPack1;
- import java.util.Map;
- import cpw.mods.fml.common.network.IGuiHandler;
- import cpw.mods.fml.common.network.NetworkRegistry;
- import cpw.mods.fml.relauncher.Side;
- import cpw.mods.fml.relauncher.SideOnly;
- import net.minecraft.client.model.ModelBiped;
- import net.minecraft.client.renderer.entity.RenderLiving;
- import net.minecraft.entity.Entity;
- import net.minecraft.entity.player.EntityPlayer;
- import net.minecraft.util.ResourceLocation;
- import net.minecraft.world.World;
- public class CommonProxy implements IGuiHandler {
- @SideOnly(Side.CLIENT)
- @Override
- public Object getServerGuiElement(int guiId, EntityPlayer player, World world, int x, int y, int z)
- {
- if (guiId == mod_Armor_main.GUI_CUSTOM_INV)
- return new ContainerCustomPlayer(player, player.inventory, ExtendedPlayer.get(player).inventory);
- else
- return null;
- }
- @Override
- public Object getClientGuiElement(int guiId, EntityPlayer player, World world, int x, int y, int z)
- {
- if (guiId == mod_Armor_main.GUI_CUSTOM_INV)
- return new GuiCustomPlayerInventory(player, player.inventory, ExtendedPlayer.get(player).inventory);
- else
- return null;
- }
- public void registerRenderers() {
- // TODO Auto-generated method stub
- }
- public void registerGuiHandler()
- {
- NetworkRegistry.instance().registerGuiHandler(this, new CommonProxy());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement