Files
MagicBees/src/main/java/magicbees/client/gui/GUIHandler.java
T

42 lines
1.1 KiB
Java
Raw Normal View History

2013-05-23 21:07:28 -07:00
package magicbees.client.gui;
2013-04-21 15:38:52 -07:00
2013-05-23 21:07:28 -07:00
import magicbees.tileentity.TileEntityEffectJar;
2014-09-16 20:30:20 +02:00
import magicbees.tileentity.TileEntityThaumicApiary;
2013-04-21 15:38:52 -07:00
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.world.World;
import cpw.mods.fml.common.network.IGuiHandler;
public class GUIHandler implements IGuiHandler
{
@Override
public Object getServerGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z)
{
Object value = null;
if (ID == UIScreens.EFFECT_JAR.ordinal())
{
value = new ContainerEffectJar((TileEntityEffectJar)world.getTileEntity(x, y, z), player);
2013-04-21 15:38:52 -07:00
}
2014-09-16 20:30:20 +02:00
else if (ID == UIScreens.THAUMIC_APIARY.ordinal())
{
//value = new Container((TileEntityThaumicApiary)world.getTileEntity(x, y, z), player);
}
2013-04-21 15:38:52 -07:00
return value;
}
@Override
public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z)
{
Object value = null;
if (ID == UIScreens.EFFECT_JAR.ordinal())
{
value = new GUIEffectJar((TileEntityEffectJar)world.getTileEntity(x, y, z), player);
2013-04-21 15:38:52 -07:00
}
return value;
}
}