Guest User

Untitled

a guest
Nov 11th, 2016
33
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package thecraft.mod.common;
  2.  
  3. import cpw.mods.fml.common.network.IGuiHandler;
  4. import net.minecraft.entity.player.EntityPlayer;
  5. import net.minecraft.tileentity.TileEntity;
  6. import net.minecraft.world.World;
  7. import thecraft.mod.client.GuiEwiliteChest;
  8.  
  9. public class GuihandlerEwifaction implements IGuiHandler
  10. {
  11.  
  12. @Override
  13. public Object getServerGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z)
  14. {
  15. TileEntity tile = world.getTileEntity(x, y, z);
  16. if(tile instanceof TileEntityEwiliteChest)
  17. {
  18. return new ContainerEwiliteChest((TileEntityEwiliteChest)tile, player.inventory);
  19. }
  20. return null;
  21. }
  22.  
  23. @Override
  24. public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z)
  25. {
  26. TileEntity tile = world.getTileEntity(x, y, z);
  27. if(tile instanceof TileEntityEwiliteChest)
  28. {
  29. return new GuiEwiliteChest((TileEntityEwiliteChest)tile, player.inventory);
  30. }
  31. return null;
  32. }
  33.  
  34. }
RAW Paste Data