Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class GuiHandler implements IGuiHandler
- {
- public Object getServerGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z)
- {
- TileEntity entity = world.getBlockTileEntity(x, y, z);
- if(entity != null)
- {
- switch(ID)
- {
- case SkyrimMain.guiIdForge:
- if(entity instanceof TileEntityForge)
- {
- return new ContainerForge(player.inventory, (TileEntityForge) entity);
- }
- }
- }
- return null;
- }
- public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z)
- {
- TileEntity entity = world.getBlockTileEntity(x, y, z);
- if(entity != null)
- {
- switch(ID)
- {
- case SkyrimMain.guiIdForge:
- if(entity instanceof TileEntityForge)
- {
- return new GuiForge(player.inventory, (TileEntityForge) entity);
- }
- }
- }
- return null;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment