Ok thanks for your help:
Here is the GuiHandler.class
package breezertwo.morerecipes.src.grinder;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.tileentity.TileEntity;
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) {
TileEntity tile_entity = world.getTileEntity(x, y, z);
if(tile_entity instanceof TileEntityGrinder){
return new ContainerGrinder(player.inventory, (TileEntityGrinder) tile_entity);
}
return null;
}
@Override
public Object getClientGuiElement(int ID, EntityPlayer player, World world,
int x, int y, int z) {
TileEntity tile_entity = world.getTileEntity(x, y, z);
if(tile_entity instanceof TileEntityGrinder){
return new GuiGrinder(player.inventory, (TileEntityGrinder) tile_entity);
}
return null;
}
}