2012-11-05 20:29:04 +01:00
|
|
|
package mekanism.common;
|
2012-08-15 22:41:41 +02:00
|
|
|
|
2012-12-20 22:53:39 +01:00
|
|
|
import net.minecraft.entity.player.EntityPlayer;
|
|
|
|
import net.minecraft.world.World;
|
2012-08-15 22:41:41 +02:00
|
|
|
import cpw.mods.fml.common.network.IGuiHandler;
|
|
|
|
|
2012-09-08 18:48:24 +02:00
|
|
|
/**
|
2014-03-08 02:00:25 +01:00
|
|
|
* Client and server GUI hander for Mekanism.
|
2012-09-08 18:48:24 +02:00
|
|
|
* Uses CommonProxy to get the server GUI and ClientProxy for the client GUI.
|
|
|
|
* @author AidanBrady
|
|
|
|
*
|
|
|
|
*/
|
2012-11-25 16:45:00 +01:00
|
|
|
public class CoreGuiHandler implements IGuiHandler
|
2012-08-15 22:41:41 +02:00
|
|
|
{
|
2012-11-06 16:44:14 +01:00
|
|
|
@Override
|
2014-03-08 02:00:25 +01:00
|
|
|
public Object getServerGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z)
|
2012-08-24 02:04:52 +02:00
|
|
|
{
|
2012-11-05 20:29:04 +01:00
|
|
|
return Mekanism.proxy.getServerGui(ID, player, world, x, y, z);
|
2012-08-15 22:41:41 +02:00
|
|
|
}
|
|
|
|
|
2012-11-06 16:44:14 +01:00
|
|
|
@Override
|
2014-03-08 02:00:25 +01:00
|
|
|
public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z)
|
2012-08-24 02:04:52 +02:00
|
|
|
{
|
2012-11-05 20:29:04 +01:00
|
|
|
return Mekanism.proxy.getClientGui(ID, player, world, x, y, z);
|
2012-08-15 22:41:41 +02:00
|
|
|
}
|
|
|
|
}
|